e.printStackTrace();
	public void testSelectors() {		DBBroker broker = null;        try {        	assertNotNull(pool);            broker = pool.get(SecurityManager.SYSTEM_USER);            assertNotNull(broker);                        DocumentSet docs = root.allDocs(broker, new DocumentSet(), true, false);            Sequence seq = executeQuery(broker, "//SPEECH", 2628, null);                        System.out.println("Testing ChildSelector ...");            NameTest test = new NameTest(Type.ELEMENT, new QName("LINE", ""));            NodeSelector selector = new ChildSelector(seq.toNodeSet(), -1);            NodeSet set = broker.getElementIndex().findElementsByTagName(ElementValue.ELEMENT, seq.getDocumentSet(),             		test.getName(), selector);            assertEquals(9492, set.getLength());            System.out.println("ChildSelector: PASS");                        System.out.println("Testing DescendantOrSelfSelector ...");            selector = new DescendantOrSelfSelector(seq.toNodeSet(), -1);            test = new NameTest(Type.ELEMENT, new QName("SPEECH", ""));            set = broker.getElementIndex().findElementsByTagName(ElementValue.ELEMENT, seq.getDocumentSet(),             		test.getName(), selector);            assertEquals(2628, set.getLength());            System.out.println("DescendantOrSelfSelector: PASS");                        System.out.println("Testing AncestorSelector ...");            test = new NameTest(Type.ELEMENT, new QName("ACT", ""));            selector = new AncestorSelector(seq.toNodeSet(), -1, false);            set = broker.getElementIndex().findElementsByTagName(ElementValue.ELEMENT, seq.getDocumentSet(),             		test.getName(), selector);            assertEquals(15, set.getLength());            System.out.println("AncestorSelector: PASS");                        System.out.println("Testing AncestorSelector: self");            test = new NameTest(Type.ELEMENT, new QName("SPEECH", ""));            NodeSet ns = seq.toNodeSet();            System.out.println("ns = " + ns.getLength());            selector = new AncestorSelector(ns, -1, true);            set = broker.getElementIndex().findElementsByTagName(ElementValue.ELEMENT, seq.getDocumentSet(),             		test.getName(), selector);            assertEquals(2628, set.getLength());            System.out.println("AncestorSelector: PASS");                        System.out.println("Testing DescendantSelector ...");            seq = executeQuery(broker, "//SCENE", 72, null);            test = new NameTest(Type.ELEMENT, new QName("SPEAKER", ""));            selector = new DescendantSelector(seq.toNodeSet(), -1);            set = broker.getElementIndex().findElementsByTagName(ElementValue.ELEMENT, seq.getDocumentSet(),             		test.getName(), selector);            assertEquals(2639, set.getLength());            System.out.println("DescendantSelector: PASS");        } catch (Exception e) {	        fail(e.getMessage());        } finally {        	if (pool != null) pool.release(broker);        }	}