Query query = result.getQuery();
Axis[] resultAxes = result.getAxes();
axes = new JRMondrianAxis[resultAxes.length];
for (int i = 0; i < resultAxes.length; i++)
{
AxisOrdinal ordinal = AxisOrdinal.StandardAxisOrdinal.forLogicalOrdinal(i);
axes[i] = new JRMondrianAxis(resultAxes[i], query.getMdxHierarchiesOnAxis(ordinal), factory);
}
}