the setRegion() method requires an Optional<String>, which is not converted by log4j which offers a String.