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 ) ; } } }
Method to populate the QueryResults hash map by reading the key from QueryResult entities