code: public CmsPushButton createFavButton() {
  
          CmsPushButton favButton = new CmsPushButton();
          favButton.setImageClass(I_CmsButton.ButtonData.ADD_TO_FAVORITES.getSmallIconClass());
          favButton.setTitle(I_CmsButton.ButtonData.ADD_TO_FAVORITES.getTitle());
          favButton.setButtonStyle(I_CmsButton.ButtonStyle.FONT_ICON, null);
          add(favButton);
          favButton.addClickHandler(new ClickHandler() {
  
              public void onClick(ClickEvent event) {
  
                  CmsContainerpageController.get().getHandler().addToFavorites(getContentId().toString());
              }
          });
          return favButton;
      }
docs: Creates the button to add an element to the user's favorites.<p>
  
  @return the created button