tmpK.getScanAddOn().setDisplay(new DisplayImpl());
((IConfigK) tmpK).setDimensionX(new DimensionKImpl());
configModel = wrap(tmpK);
break;
case SCAN_ENERGY:
ConfigEnergyImpl tmpEnergy = new ConfigEnergyImpl();
tmpEnergy.setScanAddOn(new ScanAddOnImp());
tmpEnergy.getScanAddOn().setDisplay(new DisplayImpl());
tmpEnergy.setDimensionX(new DimensionEnergyImpl());
configModel = wrap(tmpEnergy);
break;
default:
// Impossible, but the compiler does not realize that.