Collection root = getCollection(ROOT_COLLECTION); root.allDocs(this, docs, true, false); if (LOG.isDebugEnabled()) { LOG.debug("getAllDocuments(DocumentSet) - end - " + "loading " + docs.getLength() + " documents from " + docs.getCollectionCount() + "collections took " + (System.currentTimeMillis() - start) + "ms."); } return docs;
Collection root = null; try { root = openCollection(ROOT_COLLECTION, Lock.READ_LOCK); root.allDocs(this, docs, true, false); if (LOG.isDebugEnabled()) { LOG.debug("getAllDocuments(DocumentSet) - end - " + "loading " + docs.getLength() + " documents from " + docs.getCollectionCount() + "collections took " + (System.currentTimeMillis() - start) + "ms."); } return docs; } finally { root.release(); }
	public DocumentSet getAllDocuments(DocumentSet docs) {		long start = System.currentTimeMillis();		Collection root = getCollection(ROOT_COLLECTION);		root.allDocs(this, docs, true, false);        if (LOG.isDebugEnabled()) {            LOG.debug("getAllDocuments(DocumentSet) - end - "                + "loading "                + docs.getLength()                + " documents from "                + docs.getCollectionCount()                + "collections took "                + (System.currentTimeMillis() - start)                + "ms.");        }		return docs;	}