code: public void addToolbarComponent(BaseComponent component) {
          if (tbarContainer == null) {
              tbarContainer = new ToolbarContainer();
              shell.addToolbarComponent(tbarContainer);
              registerComponent(tbarContainer);
          }
  
          tbarContainer.addChild(component);
      }
docs: Adds the specified component to the toolbar container. The component is registered to this
  container and will visible only when the container is active.
  
  @param component BaseComponent to add.