Fixing Java introspection issue while still preventing instantiation of adapter class.