public void onSuccess(String data) throws MessageException {
int requiredClientVersion;
try {
requiredClientVersion = Integer.parseInt(data);
} catch (NumberFormatException nfe) {
throw new MessageException(nfe);
}
if (requiredClientVersion != thisClientVersion) {
// TODO(danilatos): Automatically refresh (after a random delay),
// if there's no unsaved data.