if (addressToControlObject.get(deviceGroup).get(address) == null)
throw new SRCPLockingException("Object to lock not found");
Object obj = addressToControlObject.get(deviceGroup).get(address);
SRCPLock sLock = locks.get(obj);
LOCK lock = sLock.getLock();
try {
// sLock.setLocked(true);
// sLock.setSessionID(session.getCommandChannelID());
lock.set(deviceGroup, address.getAddress1(), lockDuration);
} catch (SRCPException e) {
throw new SRCPLockingException(ERR_FAILED, e);
}
return true;
}