Ported network + context binding to groovy