code: public Map<String, List<CmsRelation>> validateRelations(
          CmsRequestContext context,
          CmsPublishList publishList,
          I_CmsReport report)
      throws Exception {
  
          Map<String, List<CmsRelation>> result = null;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              result = m_driverManager.validateRelations(dbc, publishList, report);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_VALIDATE_RELATIONS_0), e);
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Validates the relations for the given resources.<p>
  
  @param context the current request context
  @param publishList the resources to validate during publishing
  @param report a report to write the messages to
  
  @return a map with lists of invalid links
  (<code>{@link org.opencms.relations.CmsRelation}}</code> objects)
  keyed by root paths
  
  @throws Exception if something goes wrong