public static boolean isMessageExcluded ( Message message , Recipient recipient ) { return isMessageExcluded ( message , recipient . getType ( ) , recipient . getValue ( ) ) ; }
Returns true if the message should be excluded based on the given recipient . A message is considered excluded if it has any constraint on the recipient s type and does not have a matching recipient for that type .