protected void configureChannel() {
ExceptionListener exceptionListener = getExceptionListener();
if (exceptionListener != null) {
channel.setExceptionListener(exceptionListener);
}
PacketListener packetListener = getPacketListener();
if (packetListener != null) {
channel.setPacketListener(packetListener);
}
channel.addTransportStatusEventListener(this);