code: @SuppressWarnings({"unchecked", "rawtypes"})
      public Collection<KeywordAnnotation> parseKeywordAnnotations()
              throws EnhancementParserException {
          Multimap<Enhancement, String> relations = ArrayListMultimap.create();
          Map<String, Enhancement> enhancementsByUri = Maps.newHashMap();
  
          try {
              RepositoryConnection conn = repository.getConnection();
              conn.begin();
              Collection<KeywordAnnotation> kas = parseKeywordAnnotations(conn,
                      relations, enhancementsByUri);
              Collection<KeywordAnnotation> result = (Collection) resolveRelations(
                      relations, conn); // Safe Casting
              for (KeywordAnnotation ka : kas)
                  if (!result.contains(ka))
                      result.add(ka);
              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#parseTextAnnotations
  ()