try
{
VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, false, out, null);
VelocityContext velocityContext = VelocityManager.getCodeGenContext(util);
velocityContext.put(DATA_BINDING_INFO_KEY, dataBindingInfo);
template.merge(velocityContext, out);
}
catch (Exception e)
{
ThreadLocalToolkit.log(new VelocityException.GenerateException(compilationUnit.getSource().getRelativePath(),
e.getLocalizedMessage()));