class RecipientIs extends GenericRecipientMatcher {

    @Override
    public void init() throws javax.mail.MessagingException {
        if (Strings.isNullOrEmpty(getCondition())) {
            throw new MessagingException("RecipientIs should have a condition  composed of a list of mail addresses");
        }
        recipients = MailAddressCollectionReader.read(getCondition());
        if (recipients.isEmpty()) {
            throw new MessagingException("RecipientIs should have at least one address passed as a condition");
        }
    }

}