Convert classes to Groovy to avoid stub generation