int[] dimensions = null;
if (configuration != null) {
for (Section section : configuration.getSections()) {
if (section instanceof AcquisitionSection) {
final AcquisitionSection acquisitionSection = (AcquisitionSection) section;
boolean isContinuous = acquisitionSection.isContinuousScan();
boolean isZigzag = acquisitionSection.isZigZag();
dimensions = acquisitionSection.getScanDimensions();
if (!isContinuous) {
scanType = ScanType.STEP_BY_STEP;
} else if (isZigzag) {
scanType = ScanType.ZIGZAG;