public void start() {
super.start();
// Replace the handler again! TODO get this in superclass
Muxer<UpHandler> muxer = this.getMuxer();
if (muxer != null) {
muxer.add(scopeId.shortValue(), new DelegatingStateTransferUpHandler(this.getProtocolAdapter(), this));
}
else
{
muxer = new MuxUpHandler(this.channel.getUpHandler());
muxer.add(scopeId.shortValue(), new DelegatingStateTransferUpHandler(this.getProtocolAdapter(), this));
this.channel.setUpHandler((UpHandler) muxer);
}
}