void addOrUpdateContainer(short accountId, Container container) {
    Account account = idToAccountMap.get(accountId);
    if (account == null) {
      throw new IllegalArgumentException("Account with ID " + accountId + "doesn't exist");
    }
    AccountBuilder accountBuilder = new AccountBuilder(account).addOrUpdateContainer(container);
    account = accountBuilder.build();
    idToAccountMap.put(account.getId(), account);
    nameToAccountMap.put(account.getName(), account);
  }
Adds or updates a {@link Container} to a parent {@link Account}.
@param accountId The id of the parent {@link Account} for this {@link Container}.
@param container {@link Container} to be added.
@throws IllegalArgumentException if {@link Account} with provided id doesn't exist.
ambry-account/src/main/java/com/github/ambry/account/AccountInfoMap.java