code: public static boolean isMessageExcluded(Message message, Recipient recipient) {
          return isMessageExcluded(message, recipient.getType(), recipient.getValue());
      }
docs: 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.
  
  @param message The message to examine.
  @param recipient The recipient.
  @return True if the message should be excluded.