public void requestVCard(final XmppURI otherJID) {
final IQ iq = new IQ(IQ.Type.get);
iq.setTo(otherJID);
iq.addExtension(VCARD, XMLNS);
session.sendIQ("avatar", iq, new IQCallback() {
@Override
public void onIQSuccess(final IQ received) {
if (received.getXML().hasChild(VCARD, "vcard-temp") && session.getCurrentUserURI().equals(received.getTo())) {
final XMLPacket photo = received.getExtension(VCARD, "vcard-temp").getFirstChild(PHOTO);
final String photoType = photo.getChildText(TYPE);