Converted Java classes to Groovy

To get CodeNarc checks for all classes, I started to convert several classes to Groovy.