// Order of class loader should be respected JSO-14
final Collection resourcesByOrigin = getConfigResources();
final LinkedList resourcesList = new LinkedList();
Iterator iOrigin = resourcesByOrigin.iterator();
while (iOrigin.hasNext()) {
Resource resource =(Resource) iOrigin.next();
// Check JSO is allowed to read jso xml config file fromt this jar.
String origin = resource.getSource();
if (origin.startsWith(LOCAL_CLASSPATH) || JarRestrictionManager.getInstance().isJarAllowed(origin)) {
LOG.debug("Adding "+CONFIGURATION_FILE_NAME+" from " + origin + ".");
resourcesList.addFirst(resource.getUrl());
} else {
LOG.debug("Jar " + origin + " refused. See jso.allowedJar property in jso.properties file.");
}
}