code: public void bind(String name, T binding) {
          put(name, binding);
  
          Map<String, Map<String, NameClassPair>> bindingsByContext = this.contextBindings;
          if (bindingsByContext != null) {
              addContextBinding(bindingsByContext, name, binding);
          }
  
          Set<String> contexts = this.contexts;
          if (contexts != null) {
              contexts.add(getContextName(name));
          }
      }
docs: Adds a binding.
  
  @param name the namespace name (e.g., "jdbc/ds")
  @param binding the binding object