private static List<File> getBundleFiles(File bundleDir) {
        if (!bundleDir.isDirectory()) {
            return new ArrayList<>();
        }
        return List.of(Objects.requireNonNull(bundleDir.listFiles((dir, name) -> name.endsWith(".jar"))));
    }
A Bundle represents an OSGi bundle inside the model, and provides utilities
for accessing resources within that bundle.

@author Tony Vaagenes, Ulf Lilleengen
@since 5.1
config-application-package/src/main/java/com/yahoo/config/model/application/provider/Bundle.java