DeserializeWorker worker = workerClass.newInstance();
worker.setInputStream(di);
worker.setAliasRegistry(aliasRegistry);
worker.setProxyRegistry(proxyRegistry);
deserializer = new AMFMessageDeserializer(worker);
} catch (Exception e) {
LogWriter.error(getClass(), "Failed to create deserializer: " + e, e);
}
return deserializer;