List<URL> urlList = null;
StatusManager sm = loggerContext.getStatusManager();
try {
urlList = Loader.getResourceOccurenceCount(resourceName, classLoader);
} catch (IOException e) {
sm.add(new ErrorStatus("Failed to get url list for resource [" + resourceName + "]",
loggerContext, e));
}
if (urlList != null && urlList.size() > 1) {
sm.add(new WarnStatus("Resource [" + resourceName + "] occurs multiple times on the classpath.",
loggerContext));