class AddSubjectPrefix extends GenericMailet {

    @Override
    public void init() throws MessagingException {
        subjectPrefix = getInitParameter("subjectPrefix");

        if (Strings.isNullOrEmpty(subjectPrefix)) {
            throw new MessagingException("Please configure a valid subjectPrefix");
        }
    }

}