getLocalTransaction().commit();
if (inTransaction()) { getLocalTransaction().commit(); }
    public void commit() throws SQLException {        if (getAutoCommit())         {            throw new SQLException("commit called with AutoCommit true!");           } // end of if ()                try {            getLocalTransaction().commit();            //getLocalTransaction().begin();        } catch(javax.resource.ResourceException resex) {            throw new SQLException(resex.toString());        }    }