Turn JmsMessage into a trait