user,
	public boolean parse(		User user,		byte[] xml,		String docName,		boolean replace)		throws Exception {		DBBroker broker = null;		try {			broker = brokerPool.get();			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)				throw new EXistException(					"Collection " + collectionName + " not found");			long startTime = System.currentTimeMillis();			DocumentImpl doc =				collection.addDocument(					broker,					user,					docName,					new InputSource(new ByteArrayInputStream(xml)));			LOG.debug(				"parsing "					+ docName					+ " took "					+ (System.currentTimeMillis() - startTime)					+ "ms.");			return doc != null;		} catch (Exception e) {			LOG.debug(e.getMessage(), e);			throw e;		} finally {			brokerPool.release(broker);		}	}