if (template.getReplyAddressType() == ReplyAction.ACTOR)
{
Object obj = inProperties.get(NotificationPropertyKeys.ACTOR);
if (obj instanceof HasEmail)
{
HasEmail actor = (HasEmail) obj;
String actorEmail = actor.getEmail();
if (StringUtils.isNotBlank(actorEmail))
{
email.setReplyTo(actorEmail);
}
}