Where the cause of action has arisen in another state or country and by the laws of the state or country where the cause of action arose an action cannot be maintained thereon by reason of lapse of time, no action can be maintained thereon in this state except in favor of one who is a resident of this state and who has held the cause of action from the time it accrued.
K.S.A. 60-516