/** * Returns whether we export a top-level resource for the given path. * * @param path must not be {@literal null} or empty. * @return */ public boolean exportsTopLevelResourceFor(String path) { Assert.hasText(path); for (ResourceMetadata metadata : cache.values()) { if (metadata.getPath().matches(path)) { return metadata.isExported(); } } return false; }