class SenderIs extends GenericMatcher {

    @Override
    public void init() throws javax.mail.MessagingException {
        if (Strings.isNullOrEmpty(getCondition())) {
            throw new MessagingException("SenderIs should have at least one address as parameter");
        }
        senders = MailAddressCollectionReader.read(getCondition());
        if (senders.size() < 1) {
            throw new MessagingException("SenderIs should have at least one address as parameter");
        }
    }

}