':param order_id: The order id to look for
:type order_id: OrderId
:return: The order or null if it cannot be found
:rtype: Order'

def find_by_id(self, order_id):

    assert isinstance(order_id, OrderId), type(order_id)
    self._logger.debug((('Order    with    the    id:    ' + str(order_id)) + '    was    searched    for    in    the    order    repository'))
    return self._orders.get(order_id)
