code: @RequestMapping(value = "branches/{branchId}/copy", method = RequestMethod.GET)
      public Form copy(@PathVariable ID branchId) {
          return Form.create()
                  .with(
                          Selection.of("sourceBranch")
                                  .label("Source branch")
                                  .help("Branch to copy configuration from")
                                  // All branches for all projects
                                  .items(structureService.getProjectList().stream()
                                          .flatMap(project -> structureService.getBranchesForProject(project.getId()).stream())
                                          // Keeps only the different branches
                                          .filter(branch -> !branchId.equals(branch.getId()))
                                          .collect(Collectors.toList()))
                  )
                  .with(
                          Replacements.of("replacements")
                                  .label("Replacements")
                  )
                  ;
      }
docs: Gets the form to copy a source branch into this branch