boolean () { if (resource != null) { return true; } long start = resourceLoading.startTiming(); try { Loader loader; while ((loader = classPath.getLoader(index++)) != null) { resource = loader.getResource(name); if (resource != null) { return true; } } } finally { resourceLoading.record(start, name); } return false; }