Interpreter design pattern in the Spring Framework