//
public byte[] encode(Object object) throws IOException {
ByteArrayOutputStream binary = new ByteArrayOutputStream();
HessianOutput hout = new HessianOutput(binary);
hout.setSerializerFactory(this.serializerFactory);
hout.writeObject(object);
return binary.toByteArray();
}
//
public Object decode(byte[] bytes) throws IOException {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();