} else if (config instanceof IConfigK) {
startScan((IConfigK) config, context);
} else if (config instanceof IConfigEnergy) {
startScan((IConfigEnergy) config, context);
} else {
throw new SalsaScanConfigurationException("Cannot start scan because Scan type not supported.");
}
} else {
throw new SalsaDeviceException("Cannot start scan because scanServerName in context is not defined");
}
} else {
throw new SalsaScanConfigurationException("Cannot start scan because context is not defined.");
}
}