public String setMasterNodeName(final String masterNodeName) {
        final String oldMasterNodeName = this.masterNodeNameRef.getAndSet(masterNodeName);
        return oldMasterNodeName;
    }
Sets the master node name to the new value and returns the old value
stroom-cluster/stroom-cluster-api/src/main/java/stroom/cluster/api/ClusterState.java