code: public boolean checkTermsRefsIntegrity(List<String> wfIds,
        List<String> termWfIds) {
      for (int i = 0; i < wfIds.size(); i++) {
        if (!termWfIds.contains(wfIds.get(i))) {
          return false;
        }
      }
      return true;
    }
docs: Check that the references from the entity spans are actually contained in
  the term ids.
  
  @param wfIds
  the worform ids corresponding to the Term span
  @param termWfIds
  all the terms in the document
  @return true or false