public XPathReference[] getXPathReferences() {
List<XPathReference> result = new ArrayList<XPathReference>();
if (StringUtils.hasContent(getPath())) {
TestModelItem testStep = getAssertable().getTestStep();
TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty("Response")
: testStep.getProperty("Request");
result.add(new XPathReferenceImpl("XQuery for " + getName() + " XQueryContainsAssertion in "
+ testStep.getName(), property, this, "path"));
}
return result.toArray(new XPathReference[result.size()]);
}