public static void validateSystemAttribute()

in ddm-bpm-extension/src/main/java/com/epam/digital/data/platform/bpms/extension/delegate/connector/keycloak/officer/KeycloakOfficerDelegateUtils.java [80:86]


  public static void validateSystemAttribute(String value, String regex, String attrName) {
    if (Objects.nonNull(value) && !value.matches(regex)) {
      throw new IllegalArgumentException(
          String.format("Value of the Keycloak attribute [%s] do not match the regex: %s",
              attrName, regex));
    }
  }