if (obj instanceof Externalizable)
{
if (value != null && value.getClass().isArray() && Byte.TYPE.equals(value.getClass().getComponentType()))
{
Externalizable extern = (Externalizable)obj;
Amf3Input objIn = new Amf3Input(context);
byte[] ba = (byte[])value;
ByteArrayInputStream baIn = new ByteArrayInputStream(ba);
try
{
//objIn.setDebugTrace(trace);
objIn.setInputStream(baIn);
extern.readExternal(objIn);
}
catch (ClassNotFoundException ex)
{
throw new MessageException("Error while reading Externalizable class " + extern.getClass().getName(), ex);
}
catch (IOException ex)
{
throw new MessageException("Error while reading Externalizable class " + extern.getClass().getName(), ex);
}
finally
{
try
{
objIn.close();
}
catch (IOException ex)
{
}
}