return javaFields.toArray(new JavaField[javaFields.size()]);
}
private Map<String, Object> _getContext() throws TemplateModelException {
BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
TemplateHashModel staticModels = wrapper.getStaticModels();
Map<String, Object> context = new HashMap<String, Object>();
context.put("hbmFileName", _hbmFileName);
context.put("ormFileName", _ormFileName);
context.put("modelHintsFileName", _modelHintsFileName);
context.put("springFileName", _springFileName);
context.put("springBaseFileName", _springBaseFileName);
context.put("springHibernateFileName", _springHibernateFileName);
context.put(
"springInfrastructureFileName", _springInfrastructureFileName);
context.put("apiDir", _apiDir);
context.put("implDir", _implDir);
context.put("sqlDir", _sqlDir);
context.put("sqlFileName", _sqlFileName);
context.put("beanLocatorUtil", _beanLocatorUtil);
context.put("beanLocatorUtilShortName", _beanLocatorUtilShortName);
context.put("propsUtil", _propsUtil);
context.put("portletName", _portletName);
context.put("portletShortName", _portletShortName);
context.put("portletPackageName", _portletPackageName);
context.put("outputPath", _outputPath);
context.put("serviceOutputPath", _serviceOutputPath);
context.put("packagePath", _packagePath);
context.put("pluginName", _pluginName);
context.put("author", _author);
context.put("serviceBuilder", this);
context.put("arrayUtil", ArrayUtil_IW.getInstance());
context.put("modelHintsUtil", _modelHints.getModelHints());
context.put(
"resourceActionsUtil", ResourceActionsUtil.getResourceActions());
context.put("stringUtil", StringUtil_IW.getInstance());
context.put("system", staticModels.get("java.lang.System"));
context.put("tempMap", wrapper.wrap(new HashMap<String, Object>()));
context.put(
"textFormatter", staticModels.get(TextFormatter.class.getName()));
context.put("validator", Validator_IW.getInstance());
return context;