ByteArrayInputStream input = new ByteArrayInputStream(this.bytes);
SimpleDataInput data = new SimpleDataInput(Marshalling.createByteInput(input));
int version = data.readInt();
Unmarshaller unmarshaller = context.createUnmarshaller(version);
try {
unmarshaller.start(data);
// Workaround for AS7-2496
ClassLoader currentLoader = null;
ClassLoader contextLoader = context.getContextClassLoader(version);
if (contextLoader != null) {
currentLoader = getCurrentThreadContextClassLoader();