} else if (!response.getHeader("Content-Type").startsWith("application/json")) {
callback.onFailure(new RuntimeException("Fetch service did not return json"));
} else {
WaveViewData waveView;
try {
WaveViewSnapshotJsoImpl snapshot = JsonMessage.parse(response.getText());
waveView = SnapshotSerializer.deserializeWave(snapshot, docFactory);
} catch (OperationException e) {
callback.onFailure(e);
return;
} catch (InvalidParticipantAddress e) {