Added java support for message_creator.