tract has been substantially performed and that the certificate of substantial performance of the sub-contract should have been given, may, upon such terms and conditions as to costs and otherwise as he deems just, make an order that the sub-contract has been substantially performed, and the order has the same force and effect as if a certificate of substantial performance of the sub-contract had