LOG.trace().log("Snapshot response recieved: ", response.getText());
// Pull the snapshot out of the response object and return it using
// the provided callback function.
if (response.getStatusCode() != Response.SC_OK) {
callback.onFailure(
new RequestException("Got back status code " + response.getStatusCode()));
} else if (!response.getHeader("Content-Type").startsWith("application/json")) {
callback.onFailure(new RuntimeException("Fetch service did not return json"));
} else {
WaveViewData waveView;
try {