code: protected Map<String, CmsDefaultSet<String>> safeGetAllowedContextMap() {
  
          try {
              return OpenCms.getResourceManager().getAllowedContextMap(m_cms);
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage(), e);
              return Collections.emptyMap();
          }
      }
docs: Helper method for getting the forbidden contexts from the resource manager without a try-catch block.<p>
  
  @return the forbidden context map