There's a method inside of LocalStore called calculateContentPreview() which does a bunch of cleanup to preview text to remove stuff that's not particularly useful/interesting in notifications (like horizontal lines, links, etc.).  In addition, there's an getPreview() method inside of Message that we could potentially replace with your implementation of getMessagePreview.  In my mind, message.getPreview() seems a lot more natural.