Simply create the new message and set its content to whatever you want - presumably something like...
"In Reply To:\n\n" + copied_text_content_from_received_message;
However, be aware that the inbound content might have various formats, including multipart (see JavaDoc for MimeMessage.getContent()
.