broker = pool.get(SecurityManager.SYSTEM_USER);
broker = pool.get(user);
    public void testIndexer() throws Exception {        DocumentImpl doc = parse(XML);        BrokerPool pool = BrokerPool.getInstance();        DBBroker broker = null;        try {            broker = pool.get(SecurityManager.SYSTEM_USER);            org.exist.dom.DocumentImpl targetDoc = broker.storeTemporaryDoc(doc);            System.out.println("testIndexer(): " + targetDoc.printTreeLevelOrder());                        Serializer serializer = broker.getSerializer();            serializer.reset();            System.out.println(serializer.serialize(targetDoc));        } finally {            pool.release(broker);        }    }