public static class MyRunner implements Runner {
@Override
public void generate( @NotNull GeneratorConfiguration configuration ) throws Exception {
Result result = Parser.parse( configuration.getClasspath(), configuration.getDomainSourceFiles() );
PrintStream statusPrinter = new PrintStream( new WriterOutputStream( configuration.getLogOut() ) );
for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
generate( descriptor, configuration, statusPrinter );
}