Move XML getSource helper to XMLUtils class