Configuration configuration = context.get( Configuration.class );
Template template = configuration.getTemplate( writable.getTemplateName() );
template.process(
new ExternalParamsTemplateModel(
new BeanModel( writable, BeansWrapper.getDefaultInstance() ),
new SimpleMapModel( context.get( Map.class ), BeansWrapper.getDefaultInstance() )
),
writer
);
}