"Expected YAML response, unexpected content type: " + response.getResultContentType());
}
final ArrayList<Map> dataset = new ArrayList<Map>();
final Object resobj;
try {
final Yaml yaml = new Yaml(new SafeConstructor());
resobj = yaml.load(resultStream);
} catch (YAMLException e) {
throw new CentralDispatcherServerRequestException("Failed to parse YAML: " + e.getMessage(), e);
}
if (resobj instanceof Collection) {