if (rmiOnewayMarshalling)
{
// Legacy treatment, pre 2.4.0.
ByteArrayInputStream bais = new ByteArrayInputStream(byteOut.toByteArray());
SerializationManager manager = SerializationStreamFactory.getManagerInstance(getSerializationType());
ObjectInputStream ois = manager.createInput(bais, getClassLoader());
try
{
byteOut.close();
payload = readObject(ois);