commented out code that sets prototype of JavaAdapter instance, which broke calls to Java methods, toString(), etc.