def buildReply(self,text=None):
        """ Builds and returns another message object with specified text.
            The to, from and thread properties of new message are pre-set as reply to this message. """
        m=Message(to=self.getFrom(),frm=self.getTo(),body=text)
        th=self.getThread()
        if th: m.setThread(th)
        return m
 Builds and returns another message object with specified text.
            The to, from and thread properties of new message are pre-set as reply to this message. 
chrome-cordova/gcmServer/xmpp/protocol.py