convert idl to groovy/java code