docs: public Set<CmsResource> getResourcesForPrincipal(
          CmsRequestContext context,
          CmsUUID principalId,
          CmsPermissionSet permissions,
          boolean includeAttr)
      throws CmsException {
  
          Set<CmsResource> dependencies;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              dependencies = m_driverManager.getResourcesForPrincipal(
                  dbc,
                  dbc.currentProject(),
                  principalId,
                  permissions,
                  includeAttr);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_READ_RESOURCES_FOR_PRINCIPAL_LOG_1, principalId), e);
              dependencies = new HashSet<CmsResource>();
          } finally {
              dbc.clear();
          }
          return dependencies;
      }