if (this.coordinator != null) { this.coordinator.completeStatements(); coordinator.setStatements(this.coordinator.getStatements());
Object syncObject = getSynchronizationObject(); synchronized (syncObject) { if (this.coordinator != null) { this.coordinator.completeStatements(); coordinator.setStatements(this.coordinator.getStatements()); }  this.coordinator = coordinator;
    public void setCoordinator(AbstractTransactionCoordinator coordinator) throws SQLException {        if (this.coordinator != null) {            this.coordinator.completeStatements();            coordinator.setStatements(this.coordinator.getStatements());        }                this.coordinator = coordinator;    }