code: final public void addIdFromDoc(Integer docId, Long reference) {
      if (!closed && (docId != null)) {
        addSinglePoint(docId, 0, 0, docId, reference);
      }
    }
docs: Adds the id from doc.
  
  @param docId the doc id
  @param reference the reference