static BundleEntryPartial forBundle()

in src/main/java/org/apache/sling/graphql/schema/aggregator/impl/BundleEntryPartial.java [44:52]


    static BundleEntryPartial forBundle(Bundle b, String entryPath) throws IOException {
        final URL entry = b.getEntry(entryPath);
        if(entry == null) {
            log.info("Entry {} not found for bundle {}", entryPath, b.getSymbolicName());
            return null;
        } else {
            return new BundleEntryPartial(b, entry);
        }
    }