§ 190-a. When domestic or foreign corporation or joint-stock association deemed resident. For the purpose of determining jurisdiction under section one hundred ninety, a domestic corporation or joint-stock association is deemed a resident of a county in which its principal place of business is established by or pursuant to a statute or by its articles of association, or in which its principal place of business or any part of its plant, shops, factories or offices is actually located, or in the case of a railroad corporation, in which any portion of the road operated by it is located, and a foreign corporation is to be deemed a resident of a county if it maintains any plant, store, office, warehouse or other facility for doing business within such county; and personal service of a paper by which an action or special proceeding is commenced, made within the county, as prescribed in the civil practice law and rules, is sufficient service thereof upon a domestic corporation wherever it is located.