if (isScanResultReady(scanServerName)) {
// Type
IConfig.ScanType scanType = getScanType(scanServerName);
switch (scanType) {
case SCAN_1D:
scanResult = new ScanConnectorToolRead1D(scanServerName, scanServerManager)
.readScanResult();
break;
case SCAN_2D:
scanResult = new ScanConnectorToolRead2D(scanServerName, scanServerManager)
.readScanResult();