docs: public String predict(LabelledDocument document) {
          if (document.getReferencedContent() != null)
              return predict(document.getReferencedContent());
          else
              return predict(document.getContent());
      }