@NotNull
private Element appendAxes(@NotNull Element rootElement) {
Element axes = new Element("Axes");
QueryAxis rows = query.getAxes().get(Axis.ROWS);
if (rows != null) {
Element rowsElement = createAxisElement(rows);
axes.addContent(rowsElement);
}
QueryAxis columns = query.getAxes().get(Axis.COLUMNS);
if (columns != null) {
Element columnsElement = createAxisElement(columns);
axes.addContent(columnsElement);
}
QueryAxis filters = query.getAxes().get(Axis.FILTER);
if (filters != null) {
Element filtersElement = createAxisElement(filters);
axes.addContent(filtersElement);
}
QueryAxis pages = query.getAxes().get(Axis.PAGES);
if (pages != null) {
Element pagesElement = createAxisElement(pages);
axes.addContent(pagesElement);
}