Try to use Spring framework to refactor MockOffer