iqSubscribeInterceptor = new IQSubscribeInterceptor();
// Add the IQ handlers to the router. This will trigger their
// initialize method.
IQRouter iqRouter = XMPPServer.getInstance().getIQRouter();
iqRouter.addHandler(iqProfileQueryHandler);
iqRouter.addHandler(iqProfileUpdateHandler);
iqRouter.addHandler(iqRelationSetupHandler);
iqRouter.addHandler(iqRelationUpdateHandler);
iqRouter.addHandler(iqRelationQueryHandler);
iqRouter.addHandler(iqPEPHandler);
// Add the interceptor to process incoming notification messages
InterceptorManager.getInstance().addInterceptor(messageInterceptor);
InterceptorManager.getInstance().addInterceptor(iqSubscribeInterceptor);