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

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