log.info("testUseStatement");
if (log != null) log.info("testUseStatement");
    public void testUseStatement() throws Exception {        log.info("testUseStatement");        FBManagedConnectionFactory mcf = initMcf();        ManagedConnection mc = mcf.createManagedConnection(null, null);        Connection c = (Connection)mc.getConnection(null, null);        Statement s = c.createStatement();        XAResource xa = mc.getXAResource();        Exception ex = null;        Xid xid = new XidImpl();        xa.start(xid, XAResource.TMNOFLAGS);        try {            s.execute("CREATE TABLE T1 ( C1 SMALLINT, C2 SMALLINT)");            //s.close();        }        catch (Exception e) {            ex = e;        }        xa.end(xid, XAResource.TMNOFLAGS);        xa.commit(xid, true);        xid = new XidImpl();        xa.start(xid, XAResource.TMNOFLAGS);        s.execute("DROP TABLE T1");        s.close();        xa.end(xid, XAResource.TMNOFLAGS);        xa.commit(xid, true);        mc.destroy();        if (ex != null) {            throw ex;        }    }