code: public final void batchUpdateWidget(final Runnable action) {
          _batchUpdateCounter++;
          try {
              action.run();
          } catch (final RuntimeException e) {
              logger.error("Exception occurred in widget batch update, fireValueChanged() will not be invoked", e);
              throw e;
          } finally {
              _batchUpdateCounter--;
          }
          if (_batchUpdateCounter == 0) {
              onBatchFinished();
          }
      }
docs: Executes a "widget batch update". Listeners and other effects of updating
  individual parts of a widget may be turned off during batch updates.
  
  @param action
  the action to execute