Add message timestamp to Java API