public static boolean setUserMetadataHeaders(byte[] userMetadata, RestResponseChannel restResponseChannel) {
    return setUserMetadataHeaders(userMetadata, restResponseChannel, Collections.emptySet());
  }
Sets the user metadata in the headers of the response.
@param userMetadata byte array containing user metadata that needs to be sent.
@param restResponseChannel the {@link RestResponseChannel} that is used for sending the response.
@return {@code true} if the user metadata was successfully deserialized into headers, {@code false} if not.
@throws RestServiceException if there are any problems setting the header.
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java