code: public void repairRelations(CmsObject cms, CmsResource resource) throws CmsException {
  
          internalReadResourceCategories(cms, resource, true);
      }
docs: Repairs broken category relations.<p>
  
  This could be caused by renaming/moving a category folder,
  or changing the category repositories base folder name.<p>
  
  Also repairs problems when creating/deleting conflicting
  category folders across several repositories.<p>
  
  The resource has to be previously locked.<p>
  
  @param cms the cms context
  @param resource the resource to repair
  
  @throws CmsException if something goes wrong