protected void cacheInContext(JRPrintElement element)
{
if (element instanceof JRTemplatePrintElement)
{
JRTemplatePrintElement templateElement = (JRTemplatePrintElement) element;
JRTemplateElement template = templateElement.getTemplate();
if (template != null)
{
virtualizationContext.cacheTemplate(template);
}
}