code: @Override
      public void register(CareWebShell shell, ElementBase owner, boolean register) {
          if (register) {
              ElementPlugin plugin = (ElementPlugin) owner;
              BaseMenuComponent menu = plugin.getShell().addMenu(getPath(), getAction());
              plugin.registerComponent(menu);
              plugin.registerId(getId(), menu);
          }
      }
docs: Registers/unregisters a plugin resource.
  
  @param shell The running shell.
  @param owner Owner of the resource.
  @param register If true, register the resource. If false, unregister it.