code: private  Map < String, WidgetRequest > generateRequestWidgetList( List < DashboardRemoteRequest.Entry > entries, Dashboard dashboard ) throws HygieiaException {
          Map< String, WidgetRequest > allWidgetRequests = new HashMap<>();
          //builds widgets
          for ( DashboardRemoteRequest.Entry entry : entries ) {
  
              List < Collector > collectors = collectorRepository.findByCollectorTypeAndName( entry.getType(), entry.getToolName() );
              if ( CollectionUtils.isEmpty( collectors ) ) {
                  throw new HygieiaException( entry.getToolName() + " collector is not available.", HygieiaException.BAD_DATA );
              }
              Collector collector = collectors.get( 0 );
              WidgetRequest widgetRequest = allWidgetRequests.get( entry.getWidgetName() );
  
              if ( widgetRequest == null ) {
                  widgetRequest = entryToWidgetRequest( dashboard, entry, collector) ;
                  allWidgetRequests.put( entry.getWidgetName(), widgetRequest );
              } else {
                  CollectorItem item = entryToCollectorItem( entry, collector );
                  if ( item != null ) {
                      widgetRequest.getCollectorItemIds().add( item.getId() );
                  }
              }
          }
          return allWidgetRequests;
      }
docs: Generates a Widget Request list of Widgets to be created from the request
  @param entries
  @param dashboard
  @return Map< String, WidgetRequest > list of Widgets to be created
  @throws HygieiaException