try {
urlSet = new UrlSet(parentClassLoader);
urlSet = urlSet.excludeJavaEndorsedDirs();
urlSet = urlSet.excludeJavaExtDirs();
urlSet = urlSet.excludeJavaHome();
urlSet = urlSet.exclude(ClassLoader.getSystemClassLoader());
} catch (IOException e) {
logger.warning("Error scanning class loader for JSP tag libraries", e);
return urls;
}