VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, mxmlConfiguration.debug(), out, null);
VelocityContext vc = VelocityManager.getCodeGenContext(util);
vc.put(STYLEDEFLIST_KEY, styleDefList);
// vc.put(PACKAGENAME_KEY, packageName); TODO: get packagename working
vc.put(CLASSNAME_KEY, className);
template.merge(vc, out);
}
catch (Exception e)
{
ThreadLocalToolkit.log(new VelocityException.GenerateException(compilationUnit.getSource().getRelativePath(),
e.getLocalizedMessage()));