Convert Groovy class to Java.

+review REVIEW-5165
src/main/groovy -> src/main/java

+review REVIEW-5165