parameters);
final NewMethod newMethod = method.copy(reader);
newMethod.setAbstract(false);
final Constructor constructor = type.getConstructor(Collections.EMPTY_LIST);
final NewInstanceTemplatedFile newInstanceStatement = new NewInstanceTemplatedFile();
newInstanceStatement.setConstructor(constructor);
final CodeBlock returnStatement = new CodeBlock() {
public boolean isEmpty() {
return false;
}
public void write(final SourceWriter writer) {
writer.print("return ");
newInstanceStatement.write(writer);
}
};
newMethod.setBody(returnStatement);