-Factory Design Pattern with a flag that takes care of all object
creation or just one passed to the factory getObject() method