def find_context_bydstiid(self, dst_iid):
    ' find a context with dst_iid, which can be a wild card. '
    for c in self._db:
        if (c['dstIID'] == dst_iid):
            return c
        if (c['dstIID'] == '*'):
            return c
    return None
find a context with dst_iid, which can be a wild card.
def find_context_bydstiid(self, dst_iid):
    '  '
    for c in self._db:
        if (c['dstIID'] == dst_iid):
            return c
        if (c['dstIID'] == '*'):
            return c
    return None