fixed cup to fix minor compilation errors in the generated java file