code: public static String normalizePathMapping(String pathMapping) {
  
  		String normalizedPathMapping = normalizePath(pathMapping);
  		if (normalizedPathMapping.endsWith("/**"))
  			normalizedPathMapping = normalizedPathMapping.substring(0, normalizedPathMapping.length() - 3);
  		return normalizedPathMapping;
  	}
docs: Normalizes a bundle path mapping. If it ends with a wildcard, the
  wildcard is removed.
  
  @param pathMapping
  the bundle path mapping
  @return the normalized path mapping