private void setAccountAndContainerHeaders(RestRequest restRequest, RestResponseChannel restResponseChannel)
      throws RestServiceException {
    Account account = RestUtils.getAccountFromArgs(restRequest.getArgs());
    Container container = RestUtils.getContainerFromArgs(restRequest.getArgs());
    if (account.getId() != Account.UNKNOWN_ACCOUNT_ID) {
      restResponseChannel.setHeader(RestUtils.Headers.TARGET_ACCOUNT_NAME, account.getName());
      restResponseChannel.setHeader(RestUtils.Headers.TARGET_CONTAINER_NAME, container.getName());
    }
    restResponseChannel.setHeader(RestUtils.Headers.PRIVATE, !container.isCacheable());
  }
Adds the account and container details to the response headers if the {@code restRequest} contains the target
account and container and they are not generic unknowns.
@param restRequest the {@link RestRequest} that contains the {@link Account} and {@link Container} details.
@param restResponseChannel the {@link RestResponseChannel} where headers need to be set.
@throws RestServiceException if headers cannot be set.
ambry-frontend/src/main/java/com/github/ambry/frontend/AmbrySecurityService.java