code: private WidgetRequest entryToWidgetRequest(Dashboard dashboard, DashboardRemoteRequest.Entry entry, Collector collector) throws HygieiaException {
          WidgetRequest request = new WidgetRequest();
          CollectorItem item = entryToCollectorItem(entry, collector);
          if (item != null) {
              request.setName(entry.getWidgetName());
              request.setComponentId(dashboard.getApplication().getComponents().get(0).getId());
              request.setOptions(entry.toWidgetOptions());
              List<ObjectId> ids = new ArrayList<>();
              ids.add(item.getId());
              request.setCollectorItemIds(ids);
          }
          return request;
      }
docs: Creates a widget from entry
  @param dashboard
  @param entry
  @return WidgetRequest