public String doCreate() throws Exception {
    if (isTesting()) {
      testConnection();
      return "input";
    }

    serverConfigManager.addServerConfiguration(
        new ServerConfig(-1, getUrl(), getUsername(), getPassword(), getTimeout()));
    return "success";
  }
  public String doEdit() throws Exception {
    ServerConfig serverConfig = serverConfigManager.getServerConfigById(serverId);
    if (serverConfig == null) {
      throw new IllegalArgumentException(
          "Could not find Artifactory server configuration by the ID " + serverId);
    }
    setUrl(serverConfig.getUrl());
    setUsername(serverConfig.getUsername());
    setPassword(serverConfig.getPassword());
    setTimeout(serverConfig.getTimeout());

    return "input";
  }
  public String doDelete() throws Exception {
    serverConfigManager.deleteServerConfiguration(getServerId());

    return "success";
  }