Changed JavaObject to AbstractJavaObject