code: private void initHasMasterMode() throws CmsException {
  
          if (hasDescriptor()
              && m_cms.hasPermissions(m_desc, CmsPermissionSet.ACCESS_WRITE, false, CmsResourceFilter.ALL)) {
              m_hasMasterMode = true;
          } else {
              m_hasMasterMode = false;
          }
      }
docs: Initializes the information on an available master mode.
  @throws CmsException thrown if the write permission check on the bundle descriptor fails.