code: public List<CmsRelation> getRelationsForResource(CmsDbContext dbc, CmsResource resource, CmsRelationFilter filter)
      throws CmsException {
  
          CmsUUID projectId = getProjectIdForContext(dbc);
          return getVfsDriver(dbc).readRelations(dbc, projectId, resource, filter);
      }
docs: Returns all relations for the given resource matching the given filter.<p>
  
  @param dbc the current db context
  @param resource the resource to retrieve the relations for
  @param filter the filter to match the relation
  
  @return all relations for the given resource matching the given filter
  
  @throws CmsException if something goes wrong
  
  @see CmsSecurityManager#getRelationsForResource(CmsRequestContext, CmsResource, CmsRelationFilter)