statements.clear();
        protected void completeStatements() throws SQLException {            SQLException resultEx = null;            for (Iterator iter = statements.iterator(); iter.hasNext();) {                AbstractStatement statement = (AbstractStatement) iter.next();                try {                    statement.completeStatement();                } catch(SQLException ex) {                    if (resultEx == null)                        resultEx = ex;                    else                        resultEx.setNextException(ex);                }                iter.remove();            }                        try {                if (localTransaction.inTransaction())                    localTransaction.commit();            } catch(ResourceException ex) {                throw new FBSQLException(ex);            }                        if (resultEx != null)                throw resultEx;        }