code: public CmsResourceProjectState getProjectState() {
  
          if (getResource().getState().isUnchanged()) {
              return STATE_CLEAN; // STATE_CLEAN
          } else if (getLock().getSystemLock().isPublish()) {
              return STATE_LOCKED_FOR_PUBLISHING;
          } else if (getResource().getProjectLastModified().equals(getReferenceProject().getUuid())) {
              return STATE_MODIFIED_IN_CURRENT_PROJECT; // STATE_MODIFIED_CURRENT_PROJECT
          } else {
              return STATE_MODIFIED_IN_OTHER_PROJECT; // STATE_MODIFIED_OTHER_PROJECT
          }
      }
docs: Returns the project state of the given resource.<p>
  
  <ul>
  <li>null: unchanged.</li>
  <li>true: locked in current project.</li>
  <li>false: not locked in current project.</li>
  </ul>
  
  @return the project state of the given resource