public Object evaluate(Object object) {
if (object == null || !(object instanceof XmlXpathFilterData)) {
return null;
}
XmlXpathFilterData data = (XmlXpathFilterData) object;
Document doc = data.getDoc();
String xpath = data.getItemXpath();
NamespaceSupport ns = data.getNamespaces();
// append the parameter from AsXpath() to the prefix
xpath += XmlMappingFeatureIterator.XPATH_SEPARATOR
+ (params.get(0) == null ? "" : params.get(0).toString());
// then evaluate xpath from the xmlResponse