Fixed generated code block so it doesn't write it back into src/main/java. Instead generated code is written into src/generated-sources