At any stage before final judgment in a civil action or proceeding in which a servicemember described in subsection (a) is a party, the court may on its own motion and shall, upon application by the servicemember, stay the action for a period of not less than 90 days, if the conditions in paragraph (2) are met.