if (mappingMetaData != null) {
try {
Map<String, Object> mapping = mappingMetaData.sourceAsMap();
viewContext = extract(mapping, request.format());
} catch (IOException e) {
throw new ElasticSearchParseException("Failed to parse mapping content to map", e);
}
}
}
if (viewContext == null) {