}
public void onMessage(String encodedData) {
try {
SerializationStreamReader reader = pushServiceStreamFactory.createStreamReader(encodedData);
Message message = (Message) reader.readObject();
handleMessage(message);
} catch (SerializationException e) {
throw new RuntimeException("Unable to deserialize " + encodedData, e);
}
}