class DisableOsgiFramework implements OsgiFramework {

    @Override
    public BundleContext bundleContext() {
        if (restrictedBundleContext == null) {
            throw newException();
        }
        return restrictedBundleContext;
    }

    public  DisableOsgiFramework();
    public  DisableOsgiFramework(RestrictedBundleContext restrictedBundleContext);

}