public void sendFeature(FriendPresence presence, Address address) throws FriendException {
   LOG.debugf("sending new address to {0}", presence);
   AddressIQ queryResult = new AddressIQ(address, factory);
   queryResult.setTo(presence.getPresenceId());
   queryResult.setFrom(connection.getLocalJid());
   queryResult.setType(IQ.Type.SET);
   connection.sendPacket(queryResult);
 }
 public void processPacket(Packet packet) {
   AddressIQ iq = (AddressIQ) packet;
   if (iq.getType().equals(IQ.Type.SET)) {
     handler.featureReceived(iq.getFrom(), iq.getAddress());
   }
 }