public Predicate<Object> translate() {
String xpath = getXPath(getChild(0));
StringTreeNode valueNode = (StringTreeNode)getChild(1);
return new PathValueEventFilter(xpath, new RegexValuePredicate(valueNode.getValue(), RegexValuePredicate.MatchPolicy.FULL));
}