protected final void forEachImportPackage(Manifest mf, Consumer<String> consumer) {
        String importPackage = mf.getMainAttributes().getValue("Import-Package");
        ImportPackageInfo importPackages = new ImportPackageInfo(importPackage);

        for (String packageName : importPackages.packages()) {
            consumer.accept(packageName);
        }
    }
Base class for OSGi bundle validator.

@author bjorncs
config-model/src/main/java/com/yahoo/vespa/model/application/validation/AbstractBundleValidator.java