public static SerializationStreamReader createReader(String payload)
throws IncompatibleRemoteServiceException, RemoteException {
SimplePayloadDecoder decoder;
try {
decoder = new SimplePayloadDecoder(new HostedModeClientOracle(), payload);
} catch (ClassNotFoundException e) {
throw new IncompatibleRemoteServiceException(
"Client does not have a type sent by the server", e);
}
CommandServerSerializationStreamReader reader = new CommandServerSerializationStreamReader();