add. methods to handle encoding response for broker.

Change-Id: Ie55ba55070dd870ed7391fa730afae0c28c1028f