if (localTransaction.inTransaction())
        public void statementCompleted(AbstractStatement stmt) throws SQLException {            statements.remove(stmt);            try {//                if (localTransaction.inTransaction())                    localTransaction.commit();            } catch(ResourceException ex) {                                try {                    if (localTransaction.inTransaction())                        localTransaction.rollback();                } catch(ResourceException ex1) {                    throw new FBSQLException(ex1);                }                                throw new FBSQLException(ex);            }        }