Why use `CustomMatcher`? `XhtmlMatcher` fits the bill, let's use that. I can implement a method `hasKeyXpath` that returns that type (as a `Matcher` interface).