public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception
{
if (hOut == null)
{
OutputStream out = OutputStreamEncoder.getOutputStream(ctx);
hOut = new Hessian2Output(out);
if (_serializerFactory != null)
hOut.getSerializerFactory().addFactory(_serializerFactory);
}
else
hOut.reset();