code: public void setValue(final Duration tenantDuration) {
          if (tenantDuration == null) {
              // no tenant specific configuration
              checkBox.setValue(false);
              durationField.setDuration(globalDuration);
              durationField.setEnabled(false);
              return;
          }
  
          checkBox.setValue(true);
          durationField.setDuration(tenantDuration);
          durationField.setEnabled(true);
      }
docs: Set the value of the duration field
  
  @param tenantDuration
  duration which will be set in to the duration field, when
  {@code null} the global configuration will be used.