try {
Enumeration<URL> fragments
= _classLoader.getResources("META-INF/web-fragment.xml");
Config config = new Config();
config.setEL(_servletAllowEL);
if (log.isLoggable(Level.FINER) && fragments.hasMoreElements())
log.finer(L.l("{0} loading web-fragments", this));
while (fragments.hasMoreElements()) {
URL url = fragments.nextElement();
if (log.isLoggable(Level.FINER)) {
log.log(Level.FINER,
L.l("Loading web-fragment '{0}:{1}'.", this, url));
}
WebAppFragmentConfig fragmentConfig = new WebAppFragmentConfig();
config.configure(fragmentConfig, Vfs.lookup(url.toString()));
_webFragments.add(fragmentConfig);
}
} catch (IOException e) {
if (log.isLoggable(Level.FINE))