code: public boolean isDirectlyOwnedInProjectBy(CmsObject cms) {
  
          return (isExclusive() || isDirectlyInherited())
              && isOwnedInProjectBy(
                  cms.getRequestContext().getCurrentUser(),
                  cms.getRequestContext().getCurrentProject());
      }
docs: Returns <code>true</code> if this is an exclusive, temporary exclusive, or
  directly inherited lock, and the current user is the owner of this lock,
  checking also the project of the lock.<p>
  
  @param cms the CMS context to check
  
  @return <code>true</code> if this is an exclusive, temporary exclusive, or
  directly inherited lock, and the current user is the owner of this lock