Any foreign corporation, doing business continuously in this State and having constantly an officer or agent resident herein on whom service of any process may be made, shall be entitled to the benefit of all provisions of law relating to limitation of actions the same as domestic corporations.
14 M.R.S. § 867