code: void setAppName(final String appName) {
          if (clusterId.applicationName != null && !clusterId.applicationName.equals(appName))
              throw new IllegalStateException("Restting the application name on a cluster is not allowed.");
          clusterId = new ClusterId(appName, clusterId.clusterName);
      }
docs: This is called from Node