code: public static void bind(ApplicationContext context) {
          Object old = contextMap.putIfAbsent(getContextClassLoader(), context);
          if (old != null) {
              throw new IllegalStateException(
                  "There is already a ApplicationContext associated with the context ClassLoader of the current thread!");
          }
      }
docs: Binds the {@link ApplicationContext} to the current context class loader .