IConfig<?> scan = null;
if (type.equals("Config1DImpl") || type.equals("Config1D")) {
scan = new Config1DImpl(); // new Config1D();
scan.setType(IConfig.ScanType.SCAN_1D);
} else if (type.equals("Config2DImpl") || type.equals("Config2D")) {
scan = new Config2DImpl(); // new Config1D();
scan.setType(IConfig.ScanType.SCAN_2D);
} else if (type.equals("ConfigHCSImpl") || type.equals("ConfigHCS")) {
scan = new ConfigHCSImpl();
scan.setType(IConfig.ScanType.SCAN_HCS);
} else if (type.equals("ConfigKImpl") || type.equals("ConfigK")) {