code: public List<EntityAuditEvent> getEntityAuditEvents(String entityId, String startKey, short numResults)
              throws AtlasServiceException {
          WebResource resource = getResource(API.LIST_ENTITY_AUDIT, entityId, URI_ENTITY_AUDIT);
          if (StringUtils.isNotEmpty(startKey)) {
              resource = resource.queryParam(START_KEY, startKey);
          }
          resource = resource.queryParam(NUM_RESULTS, String.valueOf(numResults));
  
          JSONObject jsonResponse = callAPIWithResource(API.LIST_ENTITY_AUDIT, resource);
          return extractResults(jsonResponse, AtlasClient.EVENTS, new ExtractOperation<EntityAuditEvent, JSONObject>() {
              @Override
              EntityAuditEvent extractElement(JSONObject element) throws JSONException {
                  return SerDe.GSON.fromJson(element.toString(), EntityAuditEvent.class);
              }
          });
  
      }
docs: Get the entity audit events in decreasing order of timestamp for the given entity id
  @param entityId entity id
  @param startKey key for the first event to be returned, used for pagination
  @param numResults number of results to be returned
  @return list of audit events for the entity id
  @throws AtlasServiceException