ConfigSetting getConfig(String name, Node profile)

Source

static ConfigSetting getConfig(String name, Node profile) {
  if (global.configs.containsKey(name)) {
    return global.configs[name];
  }
  if (profile is DefinitionNode && profile.configs.containsKey(name)) {
    return profile.configs[name];
  }
  return defaultConfig;
}