question: public static void withInstance ( Map < String , Object > args , Closure c ) throws SQLException , ClassNotFoundException { Sql sql = null ; try { sql = newInstance ( args ) ; c . call ( sql ) ; } finally { if ( sql != null ) sql . close ( ) ; } }
target:  Invokes a closure passing it a new Sql instance created from the given map of arguments. The created connection will be closed if required.