When a cause of action has arisen in another state or in a territory or foreign country between nonresidents of this state, and by the laws of the state, territory, or country where the cause of action arose that action cannot be maintained because of a lapse of time, the action may not be maintained in this state.