if (pubsubElements != null && pubsubElements.size() > 0) {
Element actionElement = pubsubElements.get(0);
PEPCommandHandler handler = getHandler(actionElement.getName());
if (handler != null) {
return handler.handleIQ(packet);
}
}
// No valid hanlder found. Return a feature not implemented
// error.