}
@Override
public String getConfigValue(String name, String scope, Long resourceId) {
// If either of scope or resourceId is null then return global config value otherwise return value at the scope
Config c = Config.getConfig(name);
if (c == null) {
throw new CloudRuntimeException("Missing configuration variable " + name + " in configuration table");
}
String configScope = c.getScope();
if (scope != null && !scope.isEmpty()) {
if (!configScope.contains(scope)) {
throw new CloudRuntimeException("Invalid scope " + scope + " for the parameter " + name );
}
if (resourceId != null) {