return params;
}
public static String decodeResourceURL(FacesContext context) {
ExternalContext externalContext = context.getExternalContext();
String resourceName = null;
String facesMapping = ResourceUtils.getMappingForRequest(context);
if (facesMapping != null) {
if (facesMapping.startsWith("/")) {
// prefix mapping
resourceName = externalContext.getRequestPathInfo();
} else {
String requestServletPath = externalContext.getRequestServletPath();
resourceName = requestServletPath.substring(0, requestServletPath.length() - facesMapping.length());
}
}