final String cbName = callback.getClass().getName();
if (cbName.equals(tldConfig.getDeclaringClass().getName())) {
ensureServerTldsScanned();
try {
final TldConfig config;
try {
config = (TldConfig) tldConfig.get(callback);
} catch (IllegalAccessException e) {
throw new OpenEJBException("scan with default algo");
}
final Set<URL> urls = TldScanner.scan(context.getClassLoader());
for (URL url : urls) {
if (!SERVER_URLS.contains(url)) {
tldConfig(config, url);
}
}
// add already scanned ones
for (String uri : TAG_LIB_URIS) {
config.addTaglibUri(uri);
}
for (String listener : LISTENERS) {
if (!"org.apache.myfaces.webapp.StartupServletContextListener".equals(listener)) { // done elsewhere
config.addApplicationListener(listener);
}
}
return; // done, next code is a fallback if scan() throw an exception
} catch (OpenEJBException oe) {