((IConfig2D) tmp2d).getDimensionY().getRangesList().add(yRangeToAdd);
configModel = wrap(tmp2d);
break;
case SCAN_HCS:
ConfigHCSImpl tmpHCS = new ConfigHCSImpl();
tmpHCS.setScanAddOn(new ScanAddOnImp());
tmpHCS.getScanAddOn().setDisplay(new DisplayImpl());
tmpHCS.setDimensionX(new DimensionHCSImpl());
// ((IConfigHCS) configModel).setDimensionX(new DimensionHCSModel());
// Creates one range for a new HCS config.
IRangeHCS rangeHCSToAdd = new RangeHCSImpl();