code: public static String normalizeResourcePath(final String path) {
  		if (path == null) {
  			return null;
  		}
  		String normalizedPath = replaceSlashes(path.trim());
  		if (normalizedPath.startsWith("/") && normalizedPath.length() > 1) {
  			normalizedPath = normalizedPath.substring(1);
  		}
  		return normalizedPath;
  	}
docs: Normalize the path for accesing a resource, meaning that will replace
  consecutive slashes and will remove a leading slash if present.
  
  @param path path to normalize
  @return normalized path or the original path if there is nothing to be
  replaced.