code: private BaseComponent getCommandTarget(BaseComponent component) {
          BaseComponent commandTarget = (BaseComponent) component.getAttribute(getTargetAttributeName());
          return commandTarget == null ? component : commandTarget;
      }
docs: Returns the command target associated with the specified component.
  
  @param component The component whose command target is sought.
  @return The associated command target. If there is no associated command target, returns the
  component itself (i.e., the component is the command target).