Section 4. (a) After examination of the pleadings, affidavits, certified copies of the documentation relative to other custody proceedings and such oral testimony as it may require, the court shall determine the proper parties to the custody proceeding.
(b) During the pendency of the proceeding, the court may require the joinder of additional parties and in that event, the court shall specify that such additional parties be served with process in accordance with section five or six, as applicable, or that they be otherwise notified in such manner as the court shall determine.