class MailMessageFactory {

	public SimpleMailMessage createMessage(String subject) {
		String emailReplyTo = configuration.getEmailReplyTo();

		SimpleMailMessage message = new SimpleMailMessage();
		message.setFrom(configuration.getEmailFrom());
		if (isEmpty(emailReplyTo)) {
			message.setReplyTo(emailReplyTo);
		}
		message.setSubject(subject);
		message.setSentDate(new Date());
		return message;
	}

}