@RequestMapping(value = "/key/{keyId}/edit")
  public ModelAndView editKey(@PathVariable("keyId") final String keyId) {
    final DeployKey key = this.service.getDeployKey(keyId);

    if (key == null) {
      return CommonController.createNotFound("Deploy Key", keyId);
    }

    final Map<String, Object> model = new HashMap<>();

    model.put("command", DeployKeyBean.fromKey(key));

    return new ModelAndView("editKey", model);
  }
  @RequestMapping(value = "/group/{groupId}/createKey")
  public ModelAndView createDeployKey(@PathVariable("groupId") final String groupId) {
    final DeployGroup group = this.service.getGroup(groupId);

    if (group == null) {
      return CommonController.createNotFound("Deploy Group", groupId);
    }

    final Map<String, Object> model = new HashMap<>();

    model.put("group", group);
    addBreadcrumbs("Create key", groupId, model);

    return new ModelAndView("createDeployKey", model);
  }