private void validateRequest(Request request) {
		if (request == null) {
			throw new BeanstalkException("null request");
		}

		String command = request.getCommand();
		if (command == null || command.length() == 0) {
			throw new BeanstalkException("null or empty command");
		}

		String[] validStates = request.getValidStates();
		if (validStates == null || validStates.length == 0) {
			throw new BeanstalkException("null or empty validStates");
		}
	}