}
// Create the variables we will need
List descriptors = new ArrayList();
FacesContext fcontext = (FacesContext) context.getContext(FacesContext.class);
MockApplication12 application =
(MockApplication12) fcontext.getApplication();
String key = null;
Object value = null;
// Create a feature descriptor for each configured resource bundle
Iterator entries = application.getResourceBundles().entrySet().iterator();
while (entries.hasNext()) {
Entry entry = (Entry) entries.next();
key = (String) entry.getKey();
value = entry.getValue();
descriptors.add(descriptor(key, key, "Resource Bundle " + key,