@Override
  public void filter(ContainerRequestContext requestContext,
    ContainerResponseContext responseContext) throws IOException {
    /*
     * Follows very loosely the top-level document specification described in by JSON API. Only
     * handles 200 response codes; leaves room for errors and other response types.
     */

    final int statusCode = responseContext.getStatus();
    if (Status.OK.getStatusCode() != statusCode) {
      return;
    }

    responseContext.setEntity(ImmutableMap.of("data", responseContext.getEntity()));
  }
Generate a uniform response wrapper around the Entity returned from the resource.
@see <a href="https://jsonapi.org/format/#document-top-level">JSON API Document Structure</a>
@see <a href="https://jsonapi.org/format/#error-objects">JSON API Error Objects</a>
hbase-http/src/main/java/org/apache/hadoop/hbase/http/jersey/ResponseEntityMapper.java