code: @RequestMapping(value = "branches/{branchId}/template", method = RequestMethod.PUT)
      public Branch createTemplateInstance(@PathVariable ID branchId, @RequestBody @Valid BranchTemplateInstanceSingleRequest request) {
          return branchTemplateService.createTemplateInstance(branchId, request);
      }
docs: Creates a branch template instance for one name.
  <p>
  <ul>
  <li>If the target branch does not exist, creates it.</li>
  <li>If the target branch exists:
  <ul>
  <li>If it is linked to the same definition, updates it.</li>
  <li>If it is linked to another definition, this is an error.</li>
  <li>If it is a normal branch, this is an error.</li>
  </ul>
  </li>
  </ul>
  
  @param branchId ID of the branch template definition
  @param request  Name to use when creating the branch
  @return Created or updated branch