Spring Factory Method Pattern C