@Override
  public boolean equals(Object o){
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    final RecoveryConfigComponent that = (RecoveryConfigComponent) o;
    return Objects.equals(componentName, that.componentName) &&
      Objects.equals(serviceName, that.serviceName) &&
      Objects.equals(desiredState, that.desiredState);
  }
Creates {@link RecoveryConfigComponent} instance from initialized {@link ServiceComponentHost}
ambari-server/src/main/java/org/apache/ambari/server/agent/RecoveryConfigComponent.java