this.configClass = configClass;
this.stateStore = stateStore;
configStore = new CuratorConfigStore<>(frameworkName, connectionHost);
Configuration oldConfig = null;
try {
<BUG>oldConfig = getTargetConfig();
LOGGER.info("Current target config: {}", getTargetName());

} catch (ConfigStoreException e) {
LOGGER.error("Failed to read existing target config from config store.", e);

}</BUG>
validationErrors = configValidator.validate(oldConfig, newConfiguration);

this.configClass = configClass;
this.stateStore = stateStore;
configStore = new CuratorConfigStore<>(frameworkName, connectionHost);
Configuration oldConfig = null;
try {
UUID targetName = getTargetName();
LOGGER.info("Current target config: {}", targetName.toString());
oldConfig = fetch(targetName);
} catch (ConfigStoreException e) {
LOGGER.info("Unable to retrieve target config ID from config store. " +
"This is expected if the framework is starting for the first time: {}",
e.getMessage());
}
validationErrors = configValidator.validate(oldConfig, newConfiguration);
