Connection conn = connection();
if (conn.getConnectionSettings() != null &&
conn.getConnectionSettings().isUseSASLEncryption())
{
sender = new SASLSender(sender);
conn.addConnectionListener((ConnectionListener)sender);
}
// XXX: hardcoded max-frame
Disassembler dis = new Disassembler(sender, Constant.MIN_MAX_FRAME_SIZE);