@Override public Map<String, Object> getTemplateParameters() { // NOTE: unmodifable map returned from super class Map<String, Object> params = new HashMap<String, Object>(32, 1.0f); params.putAll(super.getTemplateParameters()); // render context RequestContext context = getRequestContext(); ModelObject object = getModelObject(); // in the case of an internal error such as script compliation failing // the rendercontext can be null - as we are building template model // for the webscript status page - no futher work required here. if (context != null) { try { processorModelHelper.populateTemplateModel(context, params, object); } catch (RendererExecutionException ree) { // This exception is only thrown when processing // template objects, thus it shouldn't occur for web scripts } catch (UnsupportedEncodingException uee) { // should not occur as UTF-8 is always supported } } return params; }
@Override public Map<String, Object> getTemplateParameters() { // NOTE: unmodifable map returned from super class Map<String, Object> params = new HashMap<String, Object>(32, 1.0f); params.putAll(super.getTemplateParameters()); // render context RequestContext context = getRequestContext(); ModelObject object = getModelObject(); // in the case of an internal error such as script compliation failing // the rendercontext can be null - as we are building template model // for the webscript status page - no futher work required here. if (context != null) { try { processorModelHelper.populateTemplateModel(context, params, object); } catch (RendererExecutionException ree) { // This exception is only thrown when processing // template objects, thus it shouldn't occur for web scripts } catch (UnsupportedEncodingException uee) { // should not occur as UTF-8 is always supported } } return params; }