String id = null;
if (packet.getElemTo() != null) {
id = JIDUtils.getNodeID(packet.getElemTo());
} // end of if (packet.getElemTo() != null)
if (id == null || id.equals(session.getUserId())) {
StanzaType type = packet.getType();
switch (type) {
case get:
String iq_level = session.getPublicData(ID, LEVEL, null);
results.offer(getResponsePacket(packet, iq_level));
break;