private void setAmbryHeadersForPut(JSONObject headers, String ttlInSecs, String serviceId, Container container,
      String contentType, String ownerId) throws JSONException {
    setAmbryHeadersForPut(headers, ttlInSecs, serviceId, container, contentType, ownerId, true);
  }
Sets headers that helps build {@link BlobProperties} on the server. See argument list for the headers that are set.
Any other headers have to be set explicitly.
@param headers the {@link JSONObject} where the headers should be set.
@param ttlInSecs sets the {@link RestUtils.Headers#TTL} header.
@param serviceId sets the {@link RestUtils.Headers#SERVICE_ID} header.
@param container used to set the container for {@link RestUtils.InternalKeys#TARGET_CONTAINER_KEY}.
@param contentType sets the {@link RestUtils.Headers#AMBRY_CONTENT_TYPE} header.
@param ownerId sets the {@link RestUtils.Headers#OWNER_ID} header. Optional - if not required, send null.
@throws JSONException
ambry-api/src/test/java/com/github/ambry/rest/RestUtilsTest.java