Object response = context.getExternalContext().getResponse();
if (response instanceof MimeResponse) {
MimeResponse mimeResponse = (MimeResponse) response;
ResourceURL resourceURL = PlatformUtil
.createResourceURL(mimeResponse);
FacesResourceContext resourceContext = new FacesResourceContext(
context);
resourceContext.setResourceData(storeData);
if (resource.isCacheable(resourceContext)) {
try {
// resourceURL.setCacheability(ResourceURL.FULL);
} catch (IllegalStateException e) {
// Ignore that, use default cache level.