String urlPrefix = (String) emailProperties.get("email.urlprefix");
// try to use a sensible default if the details or title are null
String title = "User Comment";
if (sobaMessage.getDetails() != null) {
AbstractMessageDetails details = (AbstractMessageDetails) sobaMessage.getDetails();
if (details.getTitle() != null) {
title = details.getTitle();
}
}
VelocityContext context = new VelocityContext();
context.put("messageId", sobaMessage.getId());