Section 48. A foreign limited partnership shall not do any business in the commonwealth which is prohibited to a limited partnership organized under this chapter. A general partner or other agent of a foreign limited partnership shall be subject to the liabilities, and shall have the defenses, with respect to the foreign limited partnership, as officers, directors and other agents of a foreign corporation have under section 15.11 of subdivision A of Part 15 of chapter 156D. Subject to the constitution of the commonwealth, its organization and internal affairs and the liability of its limited partners shall be governed by the laws of the state under which it is organized.