code: protected Object[] execute(final String hostportOrPid, final String login, final String password,
  			final String beanname, String[] command, final boolean oneBeanOnly) throws Exception {
  		JMXConnector jmxc = connect(hostportOrPid, login, password);
  		Object[] result = null;
  
  		try {
  			MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
  			result = doBeans(mbsc, getObjectName(beanname), command, oneBeanOnly);
  		} finally {
  			jmxc.close();
  		}
  		return result;
  	}
docs: Execute command against remote JMX agent.
  @param hostportOrPid 'host:port' combination.
  @param login RMI login to use.
  @param password RMI password to use.
  @param beanname Name of remote bean to run command against.
  @param command Array of commands to run.
  @param oneBeanOnly Set true if passed <code>beanname</code> is an exact name and the query for a bean is only
  supposed to return one bean instance. If not, we raise an exception (Otherwise, if false, then we deal with
  possibility of multiple bean instances coming back from query). Set to true when want to get an attribute or run
  an operation.
  @return Array of results -- one per command.
  @throws Exception