updated generator script
updated java