moved form XmlSlurper to java matcher