// Since the template cache keeps a single instance of a Template that is shared among users,
// and since that Template instance is immutable, we need to create an Environment instance and
// use it to process the template with the user's settings.
Environment env = template.createProcessingEnvironment(context, outWriter);
applyUserSettings(env, context);
env.process();
}
public static void addAllOfbizTransforms(Map context) {
BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
TemplateHashModel staticModels = wrapper.getStaticModels();