int scanType = scanTypeAttribute.extractLong();
if (scanType != 1 && scanType != 0) {
return null;
}
scanResult = new ScanResult1DImpl();
scanResult.setResultType(IScanResult.ResultType.RESULT_1D);
// Name.
DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
String runName = runNameAttribute.extractString();