First implementation of to_java method in jrubyPluginGenerator