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