@Override
public void handleResourceRequest(FacesContext context) throws IOException {
Map<String,String> params = context.getExternalContext().getRequestParameterMap();
String library = params.get("ln");
String dynamicContentId = (String) params.get(Constants.DYNAMIC_CONTENT_PARAM);
StringEncrypter strEn = RequestContext.getCurrentInstance().getEncrypter();
if(dynamicContentId != null && library != null && library.equals(Constants.LIBRARY)) {
StreamedContent streamedContent = null;
boolean cache = Boolean.valueOf(params.get(Constants.DYNAMIC_CONTENT_CACHE_PARAM));
try {
String dynamicContentEL = strEn.decrypt(dynamicContentId);
ExternalContext externalContext = context.getExternalContext();
if(dynamicContentEL != null) {
ELContext eLContext = context.getELContext();
ValueExpression ve = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), dynamicContentEL, StreamedContent.class);