if (name.equals("error")) {
throw new AerospikeException(serverPath + " registration failed: " + parser.getValue());
}
}
node.putConnection(conn);
return new RegisterTask(cluster, serverPath);
}
catch (AerospikeException ae) {
conn.close();
throw ae;
}