@Override
	public Enumeration<URL> getResources(String name) throws IOException {
		List<URL> urls = new ArrayList<URL>();
		if (system != null) {
			urls.addAll(Collections.list(system.getResources(name)));
		}
		ArrayList<URL> fromSelf = Collections.list(findResources(name));

		ClassLoader parent = getParent();
		List<URL> fromParent = Collections.emptyList();
		if (parent != null) {
			fromParent = Collections.list(parent.getResources(name));
		}
		if (!isSpecialCase(name)) {
			urls.addAll(fromSelf);
			urls.addAll(fromParent);
		}
		else {
			urls.addAll(fromParent);
			urls.addAll(fromSelf);
		}

		return Collections.enumeration(urls);
	}
Extension for {@link URLClassLoader} that uses a parent-last (or child first) delegation.

@author Costin Leau
spring-xd-module/src/main/java/org/springframework/xd/module/support/ParentLastURLClassLoader.java