code: @GetMapping
    public String viewTagWizard(
        @RequestParam(required = false, value = "selectedTarget") String target, Model model) {
      List<String> entityTypeIds =
          dataService
              .findAll(ENTITY_TYPE_META_DATA, EntityType.class)
              .filter(entityType -> !EntityTypeUtils.isSystemEntity(entityType))
              .map(EntityType::getId)
              .collect(toList());
  
      if (StringUtils.isEmpty(target)) {
        Optional<String> findFirst = entityTypeIds.stream().findFirst();
        if (findFirst.isPresent()) {
          target = findFirst.get();
        }
      }
  
      if (StringUtils.isEmpty(target)) {
        throw new IllegalStateException("There are no entities available!");
      }
  
      List<Ontology> ontologies = ontologyService.getOntologies();
      EntityType emd = dataService.getEntityType(target);
      List<Attribute> attributes = newArrayList(emd.getAttributes());
      Map<String, Multimap<Relation, OntologyTerm>> taggedAttributes =
          attributes
              .stream()
              .collect(
                  toMap((Attribute::getName), (x -> ontologyTagService.getTagsForAttribute(emd, x))));
  
      model.addAttribute("entity", emd);
      model.addAttribute("entityTypeIds", entityTypeIds);
      model.addAttribute("attributes", attributes);
      model.addAttribute("ontologies", ontologies);
      model.addAttribute("taggedAttributes", taggedAttributes);
      model.addAttribute("relations", Relation.values());
  
      return VIEW_TAG_WIZARD;
    }
docs: Displays on tag wizard button press
  
  @param target The target entity name
  @param model the model
  @return name of the tag wizard view