public void retainEnabledActiveNodes(final Collection<String> enabledNodes) {
        enabledActiveNodes.keySet()
                .retainAll(enabledNodes);
    }
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