private boolean isInstanceSetup() {
    if (_instanceType == InstanceType.PARTICIPANT
        || _instanceType == InstanceType.CONTROLLER_PARTICIPANT) {
      boolean isValid =
          _store.exists(
                  PropertyPathConfig.getPath(
                      PropertyType.CONFIGS,
                      _clusterName,
                      ConfigScopeProperty.PARTICIPANT.toString(),
                      _instanceName))
              && _store.exists(
                  PropertyPathConfig.getPath(PropertyType.MESSAGES, _clusterName, _instanceName))
              && _store.exists(
                  PropertyPathConfig.getPath(
                      PropertyType.CURRENTSTATES, _clusterName, _instanceName))
              && _store.exists(
                  PropertyPathConfig.getPath(
                      PropertyType.STATUSUPDATES, _clusterName, _instanceName))
              && _store.exists(
                  PropertyPathConfig.getPath(PropertyType.ERRORS, _clusterName, _instanceName));

      return isValid;
    }
    return true;
  }
  private boolean isClusterSetup(String clusterName) {
    if (clusterName == null || _store == null) {
      return false;
    }

    boolean isValid =
        _store.exists(PropertyPathConfig.getPath(PropertyType.IDEALSTATES, clusterName))
            && _store.exists(
                PropertyPathConfig.getPath(
                    PropertyType.CONFIGS, clusterName, ConfigScopeProperty.CLUSTER.toString()))
            && _store.exists(
                PropertyPathConfig.getPath(
                    PropertyType.CONFIGS, clusterName, ConfigScopeProperty.PARTICIPANT.toString()))
            && _store.exists(
                PropertyPathConfig.getPath(
                    PropertyType.CONFIGS, clusterName, ConfigScopeProperty.RESOURCE.toString()))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.PROPERTYSTORE, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.LIVEINSTANCES, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.INSTANCES, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.EXTERNALVIEW, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.CONTROLLER, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.STATEMODELDEFS, clusterName))
            && _store.exists(
                PropertyPathConfig.getPath(PropertyType.MESSAGES_CONTROLLER, clusterName))
            && _store.exists(
                PropertyPathConfig.getPath(PropertyType.ERRORS_CONTROLLER, clusterName))
            && _store.exists(
                PropertyPathConfig.getPath(PropertyType.STATUSUPDATES_CONTROLLER, clusterName))
            && _store.exists(PropertyPathConfig.getPath(PropertyType.HISTORY, clusterName));

    return isValid;
  }