broker = pool.get(); broker.setUser(session.getUser());
broker = pool.get(session.getUser());
	public boolean createCollection(String sessionId, String collection)		throws RemoteException {		Session session = SessionManager.getInstance().getSession(sessionId);		DBBroker broker = null;		try {			broker = pool.get();			broker.setUser(session.getUser());			LOG.debug("creating collection " + collection);			org.exist.collections.Collection coll =				broker.getOrCreateCollection(collection);			if (coll == null) {				LOG.debug("failed to create collection");				return false;			}			broker.saveCollection(coll);			broker.flush();			broker.sync();			return true;		} catch (Exception e) {			LOG.debug(e);			throw new RemoteException(e.getMessage());		} finally {			pool.release(broker);		}	}