<BUG>if (nc != null) {nc.close();</BUG><CONTEXT>if (!cr.getError().isEmpty()) {throw new IOException(cr.getError());}}} finally {<extra_id_0>}this.unlock();}</CONTEXT>
if (ncOwned && (nc != null)) {nc.close();