code: public static void showToolbar(
          final CmsToolbar toolbar,
          final boolean show,
          final CmsStyleVariable toolbarVisibility,
          String showClass) {
  
          if (show) {
              toolbarVisibility.setValue(showClass);
          } else {
              toolbarVisibility.setValue(I_CmsLayoutBundle.INSTANCE.toolbarCss().toolbarHide());
          }
      }
docs: Helper method for setting toolbar visibility.<p>
  
  @param toolbar the toolbar
  @param show true if the toolbar should be shown
  @param toolbarVisibility the style variable controlling the toolbar visibility
  @param showClass the class which should be used for showing the toolbar