Stop Writing switch Statements in Your Spring Boot Services

The Registry/Engine pattern, or how to let Spring do the dispatching for you