String yamlFileString = getDeploymentContent(fileInputStream);
yamlFileString = org.wso2.carbon.kernel.utils.Utils.substituteVariables(yamlFileString);
String jsonString = ConfigResolverUtils.convertYAMLToJSON(yamlFileString);
return getDeploymentConfigTable(jsonString);
} catch (IOException e) {
<BUG>String errorMessage = "Failed populate CarbonConfiguration from " + configFile.getName();
</BUG>
logger.error(errorMessage, e);
throw new RuntimeException(errorMessage);
}

String yamlFileString = getDeploymentContent(fileInputStream);
yamlFileString = org.wso2.carbon.kernel.utils.Utils.substituteVariables(yamlFileString);
String jsonString = ConfigResolverUtils.convertYAMLToJSON(yamlFileString);
return getDeploymentConfigTable(jsonString);
} catch (IOException e) {
String errorMessage = "Failed populate Deployment Configuration from " + configFile.getName();
logger.error(errorMessage, e);
throw new RuntimeException(errorMessage);
