@classmethod
def _initmessagefromnode(cls, inode, ta_info, envelope=None):
    """ initialize a inmessage-object from node in tree.
            used in nextmessage.
        """
    messagefromnode = cls(ta_info)
    messagefromnode.root = inode
    messagefromnode.envelope = envelope
    return messagefromnode
