def get_payment_stream(self, msg): """Determine which PaymentStream should handle this message @param msg: the message, reads the hexid off the front @type msg: str @returns: PaymentStream""" hexId, msg = Basic.read_hexid(msg) return self.paymentStreams[hexId], msg