Implement Factory Pattern with AbstractCreator as shown in the below.
http://java.dzone.com/articles/design-patterns-factory