added some generalization code to extract version configuration from provided xml.