@Override
  public SearchConfiguration merge(SearchConfiguration other) {
    if (other == null) {
      return this;
    }

    // set the documentRef to the other UITypesConfiguration to continue
    // merging, if needed
    docRef = other.getDocumentRef();
    if (allowedContentViews.isEmpty() && !other.getAllowedContentViewNames().isEmpty()) {
      this.allowedContentViews = Collections.unmodifiableList(other.getAllowedContentViewNames());
      canMerge = false;
    }

    return this;
  }