public boolean equalsWithoutContainers(Account account) {
    if (this == account) {
      return true;
    }
    if (account == null) {
      return false;
    }
    // We don't compare snapshot version and lastModifiedTime
    return id == account.id && name.equals(account.name) && status == account.status
        && aclInheritedByContainer == account.aclInheritedByContainer && quotaResourceType == account.quotaResourceType;
  }
Compare this account with the given {@link Account}, return true if they are equal without comparing containers.
@param account The account to compare
@return True when they are equal without comparing containers.
ambry-api/src/main/java/com/github/ambry/account/Account.java