Custom matching logic.
Evaluates whether the given message matches the criteria defined by the implementing class.