We should be using ClassLoader.getResources() instead of getResources() when locating resources. If multiple resources share the same name, there's probably not much we can do, apart from at least starting out with throwing a warning about the situation (at least until we add a way to segregate/namespace the resources).