Change java file to groovy file
Delete unused code
Use groovy syntax