Refactoring of XML extraction code in HPCApplication