Added the logic to merge the static xml file. Refactored the domain classes.