public AbsoluteRange getHistogramBoundaries() {
if (boundaries == null) {
try {
ObjectMapper mapper = new ObjectMapper();
JsonParser jp = mapper.getFactory().createParser(getBuiltQuery());
JsonNode rootNode = mapper.readTree(jp);
JsonNode timestampNode = rootNode.findValue("range").findValue("timestamp");
String from = Tools.elasticSearchTimeFormatToISO8601(timestampNode.findValue("from").asText());
String to = Tools.elasticSearchTimeFormatToISO8601(timestampNode.findValue("to").asText());
boundaries = new AbsoluteRange(from, to);
} catch (Exception ignored) {}