JSTPPatternComparer: compare, taken from resource-kata