public void acceptCmd(UUID idClient, byte[] data) {
		int index = getIndex(data);
		byte cmd = getCmd(data);
		
		if (index < 0 || index >= locks.keySet().size()) {
			if (!send(idClient, false)) error("acceptCmd", "failed to send fail to client: " + idClient);
		} else if (cmd == 0 && (locks.get(index).peek() == null || !locks.get(index).peek().equals(idClient))) {
			if (!send(idClient, false)) error("acceptCmd", "failed to send fail to client: " + idClient);
		} else {
			if (cmd == 1) acquireLock(idClient, index);
			else releaseLock(idClient, index);
		}
	}