? EntityLockService.instance().newWriteLock(groupType, key, owner)
: EntityLockService.instance().newWriteLock(groupType, key, owner, secs);
ILockableEntityGroup group = groupFactory.findLockable(key);
if ( group == null )
{ lock.release(); }
else
{ group.setLock(lock); }
return group;
}