refactoring support for jruby
refactoring support for jruby