code: private void parseResources(CloudTrailEventData eventData) throws IOException {
          JsonToken nextToken = jsonParser.nextToken();
          if (nextToken == JsonToken.VALUE_NULL) {
              eventData.add(CloudTrailEventField.resources.name(), null);
              return;
          }
  
          if (nextToken != JsonToken.START_ARRAY) {
              throw new JsonParseException("Not a list of resources object", jsonParser.getCurrentLocation());
          }
  
          List<Resource> resources = new ArrayList<Resource>();
  
          while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
              resources.add(parseResource());
          }
  
          eventData.add(CloudTrailEventField.resources.name(), resources);
      }
docs: Parses a list of Resource.
  
  @param eventData the resources belong to
  @throws IOException