code: @RequestMapping(value = "branches/{branchId}/template/connect", method = RequestMethod.GET)
      public Form connectTemplateInstance(@PathVariable ID branchId) {
          // Loads the branch
          Branch branch = structureService.getBranch(branchId);
          // List of templates
          Collection<LoadedBranchTemplateDefinition> templateDefinitions = branchTemplateService.getTemplateDefinitions(branch.getProject());
          // List of sync form per template
          return Form.create()
                  .with(
                          ServiceConfigurator.of("connectionRequest")
                                  .label("Template")
                                  .help("Template to connect to")
                                  .sources(
                                          templateDefinitions.stream()
                                                  .map(lbtd -> new ServiceConfigurationSource(
                                                          lbtd.getBranch().getId().toString(),
                                                          lbtd.getBranch().getName(),
                                                          lbtd.getForm()
                                                  ))
                                                  .collect(Collectors.toList())
                                  )
                  );
      }
docs: Gets the form to connect a branch to a template.