@RequestMapping(method = GET)
  public String get(@PathVariable String projectName, Model model) {
    Project project = cacheManager.get(projectName);
    if (project == null) {
      model.addAttribute("projectName", projectName);
      return "noPairLadder";
    }

    ProjectView projectView = this.projectToViewTransformer.transform(project);
    model.addAttribute("project", projectView);

    return "pairLadder";
  }
  @RequestMapping(method = POST)
  public Project create(
      @PathVariable String projectName,
      @RequestParam("name") List<String> names,
      @RequestParam(value = "roles", required = false) List<String> roles) {

    Project project =
        newProjectTransformer.transform(
            projectName, names, roles == null ? Lists.<String>newArrayList() : roles);
    if (!EMPTY_PROJECT.equals(project)) {
      cacheManager.put(project);
    }
    return project;
  }