ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
try {
ServerSerializationStreamReader streamReader =
new ServerSerializationStreamReader(classLoader, this);
streamReader.prepareToRead(encodedRequest);
String interfaceName = readClassName(streamReader);
Class<?> serviceClass = getServiceClass(interfaceName);
Object service = getService(serviceClass);
SerializationPolicy serializationPolicy =
streamReader.getSerializationPolicy();