code: public void registerBootstrapContext(CloneableBootstrapContext bc)
     {
        if (bc != null)
        {
           if (bc.getName() == null || bc.getName().trim().equals(""))
              throw new IllegalArgumentException("The name of BootstrapContext is invalid: " + bc);
  
           if (!bootstrapContexts.keySet().contains(bc.getName()))
           {
              bootstrapContexts.put(bc.getName(), bc);
           }
        }
     }
docs: Register bootstrap context
  @param bc The bootstrap context