for (Iterator i = connectionHandles.iterator(); i.hasNext();) { AbstractConnection connection = (AbstractConnection) i.next(); connection.setManagedConnection(null); } connectionHandles.clear();
disassociateConnections();
    public void cleanup() throws ResourceException {        for (Iterator i = connectionHandles.iterator(); i.hasNext();) {            AbstractConnection connection = (AbstractConnection) i.next();            connection.setManagedConnection(null);        }        connectionHandles.clear();        this.gdsHelper.setCurrentTrHandle(null);        // reset the TPB from the previous transaction.        this.tpb.setTpb(mcf.getTpb());    }