String receiverUserName = getUserName(
activity.getReceiverUserId(), themeDisplay);
int activityType = activity.getType();
MBMessage message = MBMessageLocalServiceUtil.getMessage(
activity.getClassPK());
<BUG>String link =
themeDisplay.getPortalURL() + themeDisplay.getPathMain() +
"/message_boards/find_message?messageId=" +

message.getMessageId();

String titlePattern = null;</BUG>
if (activityType == MBActivityKeys.ADD_MESSAGE) {

String receiverUserName = getUserName(
activity.getReceiverUserId(), themeDisplay);
int activityType = activity.getType();
MBMessage message = MBMessageLocalServiceUtil.getMessage(
activity.getClassPK());
StringBuilder sb = new StringBuilder(4);
sb.append(themeDisplay.getPortalURL());
sb.append(themeDisplay.getPathMain());
sb.append("/message_boards/find_message?messageId=");
sb.append(message.getMessageId());
String link = sb.toString();
String titlePattern = null;
if (activityType == MBActivityKeys.ADD_MESSAGE) {
