code: public void registerId(String id, BaseComponent component) {
          if (!StringUtils.isEmpty(id) && !container.hasAttribute(id)) {
              container.setAttribute(id, component);
          }
      }
docs: Allows auto-wire to work even if component is not a child of the container.
  
  @param id BaseComponent id.
  @param component BaseComponent to be registered.