code: private void populateQueryResultsInCDC(Map<String, QueryResult> queryResults, QueryResult queryResult) {
          if (queryResult != null) {
              List<? extends IEntity> entities = queryResult.getEntities();
              if (entities != null && !entities.isEmpty()) {
                  IEntity entity = entities.get(0);
                  String entityName = entity.getClass().getSimpleName();
                  queryResults.put(entityName, queryResult);
              }
          }
      }
docs: Method to populate the QueryResults hash map by reading the key from QueryResult entities
  
  @param queryResults
  the queryResults hash map to be populated
  @param queryResult
  the QueryResult object