protected static Object[] doBean(MBeanServerConnection mbsc, ObjectInstance instance, String[] command)
			throws Exception {
		// If no command, then print out list of attributes and operations.
		if (command == null || command.length <= 0) {
			return new String[] { listOptions(mbsc, instance) };
		}

		// Maybe multiple attributes/operations listed on one command line.
		Object[] result = new Object[command.length];
		for (int i = 0; i < command.length; i++) {
			result[i] = doSubCommand(mbsc, instance, command[i]);
		}
		return result;
	}
protected static Object [ ] doBean ( MBeanServerConnection mbsc , ObjectInstance instance , String [ ] command ) throws Exception { if ( command == null || command . length <= 0 ) { return new String [ ] { listOptions ( mbsc , instance ) } ; } Object [ ] result = new Object [ command . length ] ; for ( int i = 0 ; i < command . length ; i ++ ) { result [ i ] = doSubCommand ( mbsc , instance , command [ i ] ) ; } return result ; }
Get attribute or run operation against passed bean <code>instance</code>.

@param mbsc Server connection.
@param instance Bean instance we're to get attributes from or run operation against.
@param command Command to run (May be null).
@return Result. If multiple commands, multiple results.
@throws Exception