ide-codegen converted to Java and Velocity