code: public static void showToolbar(
          final CmsToolbar toolbar,
          final boolean show,
          final CmsStyleVariable toolbarVisibility) {
  
          if (show) {
              toolbarVisibility.setValue(null);
          } 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