code: protected XComponentContext getLocalContext() throws BootstrapException, Exception {
  
          XComponentContext xLocalContext = Bootstrap.createInitialComponentContext(null);
          if (xLocalContext == null) {
              throw new BootstrapException("no local component context!");
          }
          return xLocalContext;
      }
docs: Create default local component context.
  
  @return      The default local component context