public static void addDefaultResource(String name){
  ArrayList<Configuration> toReload;
synchronized (Configuration.class) {
    if (defaultResources.contains(name)) {
      return;
    }
    defaultResources.add(name);
    toReload=new ArrayList<>(REGISTRY.size());
    toReload.addAll(REGISTRY.keySet());
  }
  for (  Configuration conf : toReload) {
    if (conf.loadDefaults) {
      conf.reloadConfiguration();
    }
  }
}

public static void addDefaultResource ( String name ) { ArrayList < Configuration > toReload ; synchronized ( Configuration . class ) { if ( defaultResources . contains ( name ) ) { return ; } defaultResources . add ( name ) ; toReload = new ArrayList < > ( REGISTRY . size ( ) ) ; toReload . addAll ( REGISTRY . keySet ( ) ) ; } for ( Configuration conf : toReload ) { if ( conf . loadDefaults ) { conf . reloadConfiguration ( ) ; } } }
add a default resource . resources are loaded in the order of the resources added .
