More bug fixes for jruby generator -- now suuports generating KB apis and plugin apis.