public static final String module = JpCacheIncludeTransform.class.getName();
protected static UtilCache pageCache = UtilCache.createUtilCache("webapp.JpInclude", 0, 0, 0, false, false);
public Writer getWriter(final Writer writer, Map args) throws TemplateModelException, IOException {
Environment env = Environment.getCurrentEnvironment();
BeanModel req = (BeanModel) env.getVariable("request");
BeanModel jpr = (BeanModel) env.getVariable("pages");
final HttpServletRequest request = (HttpServletRequest) req.getWrappedObject();
final ServletContext ctx = (ServletContext) request.getAttribute("servletContext");
final RepositoryWrapper wrapper = (RepositoryWrapper) jpr.getWrappedObject();
final String contextName = ctx.getServletContextName();
final long expireTime = this.getExpireTime(args);
final String include = this.getInclude(args);
return new Writer(writer) {