Would be better to get rid this logic from parser. 
Maybe just provide inner `enum` for that and parse the constant to value in the setter: https://github.com/spring-projects/spring-integration/blob/master/spring-integration-core/src/main/java/org/springframework/integration/handler/LoggingHandler.java