[Java]: Fix for #190 - messageSchema.headerType is now used or defaulted to messageHeader if not present.