cfgA.setName("A");
cfgB.setName("B");
cfgC.setName("C");
cfgD.setName("D");
cfgA.setOrdering(new Ordering());
FacesConfigNameSlot temp = new FacesConfigNameSlot();
temp.setName("B");
cfgA.getOrdering().getAfterList().add(temp);
cfgC.setOrdering(new Ordering());
cfgC.getOrdering().getBeforeList().add(new ConfigOthersSlot());
List<FacesConfig> appConfigResources = new ArrayList<FacesConfig>();
appConfigResources.add(cfgA);
appConfigResources.add(cfgB);