// cache entity resolver, as we have no idea how expensive it is to query
// it on the channel every time
this.entityResolver = channel.getEntityResolver();
EventManager eventManager = channel.getEventManager();
if (eventManager != null) {
this.mergeHandler = new DataContextMergeHandler(this);
// listen to our channel events...