if (broker.getDocument(user, docName) == null)
broker = brokerPool.get(); broker.setUser(user); int p = docName.lastIndexOf('/'); if (p < 0 || p == docName.length() - 1) throw new EXistException("Illegal document path"); String collectionName = docName.substring(0, p); docName = docName.substring(p + 1); Collection collection = broker.getCollection(collectionName); if (collection == null)
	public void remove(User user, String docName) throws Exception {		DBBroker broker = brokerPool.get();		try {			if (broker.getDocument(user, docName) == null)				throw new EXistException(					"document [" + docName + "] not found!");			broker.removeDocument(user, docName);		} finally {			brokerPool.release(broker);		}	}