code: public IEntityLock newWriteLock(EntityIdentifier entityID, String owner)
              throws LockingException {
          return lockService.newLock(
                  entityID.getType(), entityID.getKey(), IEntityLockService.WRITE_LOCK, owner);
      }
docs: Returns a write lock for the <code>IBasicEntity</code> and owner.
  
  @return org.apereo.portal.concurrency.locking.IEntityLock
  @param entityID EntityIdentifier
  @param owner String
  @exception LockingException