code: public BioCCollection readCollection()
        throws XMLStreamException {
      if (collection != null) {
        BioCCollection thisCollection = collection;
        collection = null;
        return thisCollection;
      }
      return null;
    }
docs: Reads the collection of documents.
  
  @return the BioC collection
  @throws XMLStreamException if an unexpected processing error occurs