serviceField.setTypeAhead(true);
serviceField.addSelectionChangedListener(new SelectionChangedListener<Service>()
{
public void selectionChanged(SelectionChangedEvent<Service> se)
{
Service service = se.getSelectedItem();
XmppQuery iq = session.getFactory().createQuery();
iq.setIQ(service.getJid(), XmppQuery.TYPE_GET, TextUtils.genUniqueId());
iq.setQuery("jabber:iq:search");
session.send(iq, new XmppPacketListener()
{
public void onPacketReceived(XmppPacket iq)
{