code: public static String[] normalizePatterns(final String[] urlPatterns) {
  		String[] normalized = null;
  		if (urlPatterns != null) {
  			normalized = new String[urlPatterns.length];
  			for (int i = 0; i < urlPatterns.length; i++) {
  				normalized[i] = normalizePattern(urlPatterns[i]);
  			}
  		}
  		return normalized;
  	}
docs: Normalize an array of patterns.
  
  @param urlPatterns to mormalize
  @return array of nomalized patterns