static JarContext of(Context context) {
            return new JarContext() {
                @Override public void illegal(String error) { context.illegal(error); }
                @Override public void illegal(String error, Throwable cause) { context.illegal(error, cause); }
                @Override public DeployState deployState() { return context.deployState(); }
            };
        }
Base class for OSGi bundle validator.

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