Change class from java to groovy - Fixes #18