public IQ createAck(IQ iq) {
        IQ result = null;

        if (iq != null) {
            // Don't acknowledge ACKs, errors...
            if (iq.getType().equals(IQ.Type.set)) {
                IQ ack = IQ.createResultIQ(iq);

                // No! Don't send it.  Let it flow to the normal way IQ results get processed and sent.
                // getConnection().sendStanza(ack);
                result = ack;
            }
        }
        return result;
    }
public IQ createAck ( IQ iq ) { IQ result = null ; if ( iq != null ) { if ( iq . getType ( ) . equals ( IQ . Type . set ) ) { IQ ack = IQ . createResultIQ ( iq ) ; result = ack ; } } return result ; }
Acknowledge a IQ packet.

@param iq
The IQ to acknowledge