@Override
  public boolean equals(Object obj)
  {
    if (obj == null)
      return false;

    if (obj == this)
      return true;

    if ( !(obj instanceof LogDefinition) )
      return false;

    LogDefinition other = (LogDefinition) obj;
    return new EqualsBuilder()
        .append(logId, other.logId)
        .append(primary, other.primary)
        .isEquals();
  }
Represents the log tag at service/component metainfo
ambari-server/src/main/java/org/apache/ambari/server/state/LogDefinition.java