}
if (packet.getFrom().equals(session.getConnectionId())) {
List<Element> elems = packet.getElemChildren("/iq/query");
if (elems != null && elems.size() > 0) {
Element elem = elems.get(0);
StanzaType type = packet.getType();
switch (type) {
case get:
String priv = session.getData(PRIVATE_KEY,
elem.getName()+elem.getXMLNS(), null);
log.finest("Loaded private data for key: "