code: public boolean isDirectlyOwnedInProjectBy(CmsUser user, CmsProject project) {
  
          return (isExclusive() || isDirectlyInherited()) && isOwnedInProjectBy(user, project);
      }
docs: Returns <code>true</code> if this is an exclusive, temporary exclusive, or
  directly inherited lock, and the given user is the owner of this lock,
  checking also the project of the lock.<p>
  
  @param user the user to compare to the owner of this lock
  @param project the project to compare to the project of this lock
  
  @return <code>true</code> if this is an exclusive, temporary exclusive, or
  directly inherited lock, and the given user is the owner of this lock