}
IQuery query = getIQuery(queryName);
QueryDimension dimension = query.getDimension(dimensionName);
Axis newAxis = axisName != null ? "UNUSED".equals(axisName) ? null : Axis.Standard.valueOf(axisName) : null;
if (position == -1) {
query.moveDimension(dimension, newAxis);
} else {
query.moveDimension(dimension, newAxis, position);
}
} catch (Exception e) {
throw new SaikuServiceException("Cannot move dimension:" + dimensionName + " to axis: " + axisName, e);