code: static String createRegex(String contextPath, String[] defaultExcludePrefixes, String additionalExcludePrefixes) {
  
          StringBuffer regex = new StringBuffer();
          regex.append(contextPath);
          regex.append('(');
          regex.append(defaultExcludePrefixes[0]);
          for (int i = 1; i < defaultExcludePrefixes.length; i++) {
              regex.append('|').append(defaultExcludePrefixes[i]);
          }
          if (!((null == additionalExcludePrefixes) || additionalExcludePrefixes.isEmpty())) {
              regex.append('|').append(additionalExcludePrefixes);
          }
          regex.append(')');
          regex.append(".*");
          return regex.toString();
      }
docs: Creates a regex that matches all URIs starting with one of the <code>defaultExcludePrefixes</code>
  or one of the <code>additionalExcludePrefixes</code>.
  
  @param contextPath The context path that every URI starts with.
  @param defaultExcludePrefixes the default exclude prefixes.
  @param additionalExcludePrefixes a pipe separated list of URI prefixes for which the URLs
  should not be adjusted - additionally to the default exclude prefixes
  
  @return a regex that matches all URIs starting with one of the <code>defaultExcludePrefixes</code>
  or one of the <code>additionalExcludePrefixes</code>.