docs: public void setUsernamePattern(String usernamePattern) {
          Assert.hasText(usernamePattern, "Username pattern must not be empty");
          this.usernamePattern = Pattern.compile(usernamePattern);
      }