callback.onFailure();
}
public void onSuccess(XMLHttpRequest xhr) {
try {
final ServerEvent event = ServerEvent.fromServerJson(resource,
JSON.parse(xhr.getResponseText()));
callback.onSuccess(event);
} catch (JSONParseException jpe) {
callback.onFailure();
}