def [](object_name)
      name = ObjectName.make object_name

      unless @server.isRegistered(name)
        raise NoSuchBeanError.new("No name: #{object_name}") 
      end

      #### TODO: Why?
      @server.getObjectInstance name
      MBeanProxy.generate(@server, name)
    end
def [](object_name)
      name = ObjectName.make object_name

      unless @server.isRegistered(name)
        raise NoSuchBeanError.new("No name: #{object_name}") 
      end

      #### TODO: Why?
      @server.getObjectInstance name
      MBeanProxy.generate(@server, name)
    end
when creatinga  new MBeanServer you can optionally specify a location, username, and password
 if specify these values (or at least the location) the MBeanServer instance will connect to
 an existing (and remote ) MBean server and register the mbeans there.
 otherwise the server will connect to to the local Platform MBean Server.