properties.getTemplateName() : "";
StringTemplateGroup group = new StringTemplateGroup(groupName + "Group", dir(template));
StringTemplate st = group.getInstanceOf(groupName);
for (Descriptor messageDescriptor : fd.getMessageTypes()) {
Message message = new Message(messageDescriptor, templateName, properties);
st.reset();
st.setAttribute("m", message);
write(st, new File(
outputDir.getPath() + File.separator +
message.getFullJavaType().replace('.', File.separatorChar) + "." +
(properties.hasFileExtension() ? properties.getFileExtension() : "java")));