docs: public static AuthenticationPasswordPolicyHandlingStrategy newPasswordPolicyHandlingStrategy(final PasswordPolicyProperties properties) {
          if (properties.getStrategy() == PasswordPolicyProperties.PasswordPolicyHandlingOptions.REJECT_RESULT_CODE) {
              LOGGER.debug("Created password policy handling strategy based on blacklisted authentication result codes");
              return new RejectResultCodePasswordPolicyHandlingStrategy();
          }
  
          val location = properties.getGroovy().getLocation();
          if (properties.getStrategy() == PasswordPolicyProperties.PasswordPolicyHandlingOptions.GROOVY && location != null) {
              LOGGER.debug("Created password policy handling strategy based on Groovy script [{}]", location);
              return new GroovyPasswordPolicyHandlingStrategy(location);
          }
  
          LOGGER.trace("Created default password policy handling strategy");
          return new DefaultPasswordPolicyHandlingStrategy();
      }