Map<OperationType, Handler> handlers = new HashMap<OperationType, Handler>();
handlers.put(OperationType.PUBLISH, new PublishHandler(tm, pm, conf));
handlers.put(OperationType.SUBSCRIBE,
new SubscribeHandler(conf, tm, dm, pm, sm, subChannelMgr));
handlers.put(OperationType.UNSUBSCRIBE,
new UnsubscribeHandler(conf, tm, sm, dm, subChannelMgr));
handlers.put(OperationType.CONSUME, new ConsumeHandler(tm, sm, conf));
handlers.put(OperationType.CLOSESUBSCRIPTION,
new CloseSubscriptionHandler(conf, tm, sm, dm, subChannelMgr));
handlers = Collections.unmodifiableMap(handlers);
return handlers;