/**
   * Constructs a regex filter on the specified regular expression.
   *
   * @param matchesAny <code>true</code> if it is sufficient that just one of the criteria are
   *     matched, false if all are needed to be matched
   * @param regex the regular expression on which to filter
   * @return a filter for converged infrastructures that match the specified regular expression
   */
  public static @Nonnull CIFilterOptions getInstance(boolean matchesAny, @Nonnull String regex) {
    CIFilterOptions options = new CIFilterOptions(null, matchesAny);

    options.regex = regex;
    return options;
  }
  /**
   * Constructs a regex filter on the specified regular expression.
   *
   * @param regex the regular expression on which to filter
   * @return a filter for converged infrastructures that match the specified regular expression
   */
  public static @Nonnull CIFilterOptions getInstance(@Nonnull String regex) {
    CIFilterOptions options = new CIFilterOptions(null, false);

    options.regex = regex;
    return options;
  }