fix spotbugs issues - reduce complexity of org.apache.xmlbeans.impl.common.XPath by extracting inner classes