@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (obj == this) {
      return true;
    }
    if (! (obj instanceof BulkCommandDefinition)) {
      return false;
    }

    BulkCommandDefinition rhs = (BulkCommandDefinition) obj;
    return new EqualsBuilder()
        .append(masterComponent, rhs.masterComponent)
        .append(displayName, rhs.displayName).isEquals();
  }
Represents the customCommand tag at service/component metainfo
ambari-server/src/main/java/org/apache/ambari/server/state/BulkCommandDefinition.java