methods and kernel extension to check for java classes from JRuby