public AccountBuilder removeContainer(Container container) {
    if (container != null) {
      short id = container.getId();
      Container containerToRemove = idToContainerMetadataMap.get(id);
      if (container.equals(containerToRemove)) {
        idToContainerMetadataMap.remove(id);
      }
    }
    return this;
  }
Removes a {@link Container} in this builder, so that an {@link Account} to build will not have this
{@link Container}. It will be a no-op if no {@link Container} with the id exists in this builder.
@param container The {@link Container} to remove.
@return This builder.
ambry-api/src/main/java/com/github/ambry/account/AccountBuilder.java