public void updateContainerMap(Collection<Container> containers) {
    for (Container container : containers) {
      checkParentAccountIdInContainers(container);
      checkDuplicateContainerNameOrId(container);
      containerIdToContainerMap.put(container.getId(), container);
      containerNameToContainerMap.put(container.getName(), container);
      this.containers.add(container);
    }
  }
Adds a collection of {@link Container}(s) to this account and updates internal maps accordingly.
@param containers The containers to update this account.
ambry-api/src/main/java/com/github/ambry/account/Account.java