boolean evalPromises) throws IOException {
Connection con = Connections.getConnection(context, connHandle);
boolean wasOpen = con.isOpen();
if(!wasOpen) {
con.open(new OpenSpec("wb"));
}
if(!con.canWrite()) {
throw new EvalException("connection not open for writing");
}