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"; }