In an action brought in any court upon an issue arising out of an agreement providing for the arbitration thereof, the court, upon being satisfied that the issue involved is referable to arbitration, shall stay the action, if the applicant for the stay is not in default in proceeding with the arbitration, until an arbitration has been had in accordance with the terms of the agreement.
N.J.S. § 2A:24-4