} else if (config instanceof IConfigEnergy) {
loadScan((IConfigEnergy) config, context);
} else {
String errorMessage = "Cannot load config, because Scan type not supported.";
LOGGER.error(errorMessage);
throw new SalsaScanConfigurationException(errorMessage);
}
} else {
String errorMessage = "Cannot load config, because context is not defined.";
LOGGER.error(errorMessage);
throw new SalsaScanConfigurationException(errorMessage);
}
}