code: public static String removeVariantPrefixFromPath(String path) {
  
  		String resultPath = path;
  
  		// Remove first slash
  		if (path.charAt(0) == '/') {
  			resultPath = path.substring(1);
  		}
  
  		// eval the existence of a suffix
  		String prefix = resultPath.substring(0, resultPath.indexOf("/"));
  
  		// The prefix also contains variant information after a '.'
  		if (prefix.indexOf('.') != -1) {
  			String variantPrefix = prefix.substring(prefix.indexOf('.') + 1);
  			String suffix = '@' + variantPrefix + resultPath.substring(resultPath.lastIndexOf('.'));
  			resultPath = resultPath.substring(resultPath.indexOf("/"), resultPath.lastIndexOf('.')) + suffix;
  		} else
  			resultPath = resultPath.substring(resultPath.indexOf("/"));
  
  		return resultPath;
  	}
docs: Removes the URL prefix defined in the configuration from a path. If the
  prefix contains a variant information, it adds it to the name.
  
  @param path
  the path
  
  @return the path without the prefix