me.run();
ResponseMessage resp = me.getResponseMessage();
if (resp instanceof EnsureOK) {
EnsureOK okResp = (EnsureOK) resp;
monitor.getNameIdPair().update(okResp.getNameIdPair());
return new RepNodeImpl(new NameIdPair(masterValue.getNodeName()),
NodeType.ELECTABLE,
masterValue.getHostName(),
masterValue.getPort());
}
throw getException(resp);