ByteArrayOutputStream bytes = new ByteArrayOutputStream();
HessianOutput out = new HessianOutput(bytes);
out.setSerializerFactory(HessianConfig.createFactory(
HessianConnection.CLIENT_SERIALIZER_FACTORIES,
null));
out.writeObject(object);
byte[] data = bytes.toByteArray();
HessianInput in = new HessianInput(new ByteArrayInputStream(data));
in.setSerializerFactory(HessianConfig.createFactory(