code: private List<CmsRelation> getRelationsFromResource(CmsResource currentResource) {
  
          try {
              return m_cms.readRelations(CmsRelationFilter.relationsFromStructureId(currentResource.getStructureId()));
          } catch (CmsException e) {
              return Collections.emptyList();
          }
      }
docs: Reads the relations from a given resource, and returns an empty list if an error occurs while reading them.<p>
  
  @param currentResource the resource for which to get the relation
  @return the outgoing relations