Command pattern implementation for Spring Framework