code: @SuppressWarnings({"rawtypes", "unchecked"})
      @Override
      public Collection<TopicAnnotation> parseTopicAnnotation()
              throws EnhancementParserException {
          Multimap<Enhancement, String> relations = ArrayListMultimap.create();
          Map<String, Enhancement> enhancementsByUri = Maps.newHashMap();
  
          try {
              RepositoryConnection conn = repository.getConnection();
              conn.begin();
              Collection<TopicAnnotation> tas = parseTopicAnnotations(conn,
                      relations, enhancementsByUri);
              Collection<TopicAnnotation> result = (Collection) resolveRelations(
                      relations, conn); // Safe Casting
              for (TopicAnnotation ta : tas)
                  if (!result.contains(ta))
                      result.add(ta);
              conn.close();
              return result;
          } catch (RepositoryException e) {
              throw new EnhancementParserException(
                      "Error querying the RDF Model obtained as Service Response",
                      e);
          }
      }
docs: /*
  (non-Javadoc)
  @see io.redlink.sdk.impl.analysis.model.EnhancementsParser#parseTopicAnnotation()