private static BundleContext checkBundleContext() {
        if (bundleContext == null) {
            if (tc.isDebugEnabled()) {
                Tr.debug(tc, "BundleContext is null and should not be");
            }
        }
        return bundleContext;
    }
private static BundleContext checkBundleContext ( ) { if ( bundleContext == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "BundleContext is null and should not be" ) ; } } return bundleContext ; }
Check to make sure the bundleContext has been set.

@return The BundleContext, or null if it could not be retrieved.