private void checkParentAccountIdInContainers(Container container) {
    if (container.getParentAccountId() != id) {
      throw new IllegalStateException(
          "Container does not belong to this account because parentAccountId=" + container.getParentAccountId()
              + " is not the same as accountId=" + id);
    }
  }
Checks if the parent account id in a {@link Container} matches the id of this account.
@param container The {@link Container} to check.
@throws IllegalStateException If the container's parentAccountId does not match the id of this account.
ambry-api/src/main/java/com/github/ambry/account/Account.java