final InputHandler inputHandler = new InputHandler(new Assembler(conn));
conn.addFrameSizeObserver(inputHandler);
if (conn.getConnectionSettings() != null &&
conn.getConnectionSettings().isUseSASLEncryption())
{
SASLReceiver receiver = new SASLReceiver(inputHandler);
conn.addConnectionListener(receiver);
return receiver;
}
else
{