final xml and Polymorphic code