<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sendToReplica(self, msg, frm):
 """ Send the message to the intended replica. :param msg: the message to send :param frm: the name of the node which sent this `msg` """

        # TODO: discard or stash messages here instead of doing
        # this in msgHas* methods!!!
        if self.msgHasAcceptableInstId(msg, frm):
            self.replicas.pass_message((msg, frm), msg.instId)