move more code to the rhq-msg common api