Calling different constructors of the same class by configuring the class multiple times