return doc;
for(int i=0; i< collection.size(); i++) { this.docAddPlanObject(collection.get(i)); } collection.clear();  return doc;
  public Document getDocumentRef() {    // for debugging, also print it    //    printDocument();    return doc;  }