String buddy =
JIDUtils.getNodeID(request.getAttribute("/iq/query/item", "jid"));
Element item = request.findChild("/iq/query/item");
String subscription = item.getAttribute("subscription");
if (subscription != null && subscription.equals("remove")) {
SubscriptionType sub = roster_util.getBuddySubscription(session, buddy);
if (sub == null) {
sub = SubscriptionType.none;
}
String type = request.getAttribute("/iq/query/item", "type");
if (sub != SubscriptionType.none && (type == null || !type.equals(ANON))) {