DiscoverResources disc = new DiscoverResources();
disc.addClassLoader(JDKHooks.getJDKHooks().getThreadContextClassLoader());
disc.addClassLoader(this.getClass().getClassLoader());
ResourceIterator iterator = disc.findResources(location);
if (iterator.hasNext()) {
Resource resource = iterator.nextResource();
is = resource.getResourceAsStream();
}
/**
* If we don't find it, then look on the file system.