Demo code of messaging with Java, Jersey, JSON, MongoDB, and Morphia