code: public <T> boolean registerDelegate(String className, Delegate<T> delegate)
      {
          return null == delegateMapping.putIfAbsent(className, new HasDelegate<T>(delegate, this));
      }
docs: Registers a delegate by specifying the class name. Returns true if registration is successful.