final Node node = nodeEngine.getNode();
final Address masterAddress = node.getMasterAddress();
final ILogger logger = node.loggingService.getLogger(this.getClass().getName());
boolean local = caller == null;
if (!local && !caller.equals(masterAddress)) {
logger.warning("Prepare-merge instruction sent from non-master endpoint: " + caller);
return;
}
logger.warning("Preparing to merge... Waiting for merge instruction...");
node.getClusterService().prepareToMerge(newTargetAddress);
}