efactoring of PmMessageUtil to PmMessageApi

Refactoring of PmMessageUtil to PmMessageApi