try {
for (JavaClass wrapperClass : wrapperClasses) {
generator.setCommonAttributes();
generator.setAttributes("bean", wrapperClass);
File file = generator.parseOutputName(wrapperClass.getPackageName(),
wrapperClass.getName());
generatedFiles.add(file);
generator.doWrite(TEMPLATE, new FileWriterUtil(file.getParent(), getOutputStreamCreator())
.getWriter(file, (String)getToolContext().get(ToolConstants.CFG_ENCODING)));