code: public boolean isEditable() {
  
          return m_permissionInfo.hasWritePermission()
              && CmsStringUtil.isEmptyOrWhitespaceOnly(getNoEditReason())
              && !hasForeignFolderLock()
              && !hasBlockingLockedChildren()
              && (((getLock() == null) || (getLock().getLockOwner() == null)) || getLock().isOwnedByUser());
      }
docs: Returns if the current lock state allows editing.<p>
  
  @return <code>true</code> if the resource is editable