code: public void setValue(String newValue, @Nullable String newName) {
          if (isChecked()) {
              searcher.updateFacetRefinement(this.attribute, value, false)
                      .updateFacetRefinement(newName != null ? newName : attribute, newValue, true)
                      .search();
          }
          this.value = newValue;
          applyEventualNewAttribute(newName);
      }
docs: Changes the OneValueToggle's value, updating facet refinements accordingly.
  
  @param newValue the new value to refine with.
  @param newName  an eventual new attribute name.