code: public CmsUUID getLockedInProjectId() {
  
          CmsUUID lockedInProject = null;
          if (getLock().isNullLock() && !getResource().getState().isUnchanged()) {
              // resource is unlocked and modified
              lockedInProject = getResource().getProjectLastModified();
          } else if (!getResource().getState().isUnchanged()) {
              // resource is locked and modified
              lockedInProject = getProjectId();
          } else if (!getLock().isNullLock()) {
              // resource is locked and unchanged
              lockedInProject = getLock().getProjectId();
          }
          return lockedInProject;
      }
docs: Returns the id of the project in which the given resource is locked.<p>
  
  @return the id of the project in which the given resource is locked