When a cause of action has arisen in a state or territory out of this State, or in a foreign country, and, by the laws thereof, an action thereon cannot be maintained by reason of the lapse of time, an action thereon shall not be maintained in this State.
735 ILCS 5/13-210