Could this be Java instead of groovy?