throws Exception {
if (ThinQuery.Type.QUERYMODEL.equals(tq.getType()) && formatter instanceof FlattenedCellSetFormatter) {
Cube cub = olapDiscoverService.getNativeCube(tq.getCube());
Query query = Fat.convert(tq, cub);
QueryDetails details = query.getDetails();
Measure[] selectedMeasures = new Measure[details.getMeasures().size()];
for (int i = 0; i < selectedMeasures.length; i++) {
selectedMeasures[i] = details.getMeasures().get(i);
}
result.setSelectedMeasures(selectedMeasures);
int rowsIndex = 0;
if (!cellSet.getAxes().get(0).getAxisOrdinal().equals(Axis.ROWS)) {