ObjectOutputStream oout = new CompactObjectOutputStream(bout);
oout.writeObject(e.getMessage());
oout.flush();
oout.close();
ChannelBuffer msg = bout.buffer();
msg.setInt(0, msg.writerIndex() - 4);
write(context, e.getChannel(), e.getFuture(), msg);
}
}