Have the MIME util get the data out of the MimeMessage and put it in a record; pass that record to the parser instead of the separate pieces.