if (!response.startsWith("OK")) {
throw new RuntimeException("Backend gave junk " + response);
}
try {
return GsonProto.fromGson(new ServerMutateResponseGsonImpl(),
response.substring(2));
} catch (MessageException e) {
throw new RuntimeException("Backend gave incompatible JSON: " + response, e);
}
}