converted GroovyAnnotator to Groovy class