private class RichFacesLibrariesResourceMapper implements ResourceMapper {
@Override
public ResourceMapping mapResource(ResourceKey resourceKey) {
String library = Strings.nullToEmpty(resourceKey.getLibraryName());
if (RESOURCE_LIBRARIES_TO_MAP.contains(library)) {
return new ResourceServletMapping(resourceKey);
} else {
return null;
}
}