*/
public static Object cloneViaClientServerSerialization(
Serializable object,
EntityResolver serverResolver) throws Exception {
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(