InputSource is = source.getInputSource();
// Generate code
String code = markupLanguage.generateCode(is, normalizedName, programmingLanguage, resolver);
String encoding = markupLanguage.getEncoding();
// Format source code if applicable
CodeFormatter codeFormatter = programmingLanguage.getCodeFormatter();
if (codeFormatter != null) {
code = codeFormatter.format(code, encoding);
}
// Store generated code
String sourceFilename = new StringBuffer(normalizedName).append(".")
.append(programmingLanguage.getSourceExtension()).toString();
repository.store(sourceFilename, code);