@Override
  public void updateResolvedContainers(Account account, Collection<Container> resolvedContainers)
      throws AccountServiceException {
    try {
      updateContainersWithMySqlStore(account, resolvedContainers);
    } catch (SQLException e) {
      logger.error("Failed updating containers {} in MySql DB", resolvedContainers, e);
      handleSQLException(e);
    }
    // Tell the world
    publishChangeNotice();

    if (writeCacheAfterUpdate) {
      // Write containers to in-memory cache. Snapshot version will be out of date until the next DB refresh.
      updateContainersInCache(resolvedContainers);
    }
  }
Get an existing container from a given account.
@param accountId the name of account which container belongs to.
@param containerId the id of container to get.
@return the requested {@link Container} object or null if not present.
@throws AccountServiceException if exception occurs when getting container.
ambry-account/src/main/java/com/github/ambry/account/CachedAccountService.java