void () { if (getServerName() == null) { RemoteServer<?> server = ContainerUtil.getFirstItem(RemoteServersManager.getInstance().getServers(getServerType())); if (server != null) { setServerName(server.getName()); } } if (getDeploymentSource() == null) { DeploymentConfigurator<D, S> deploymentConfigurator = getDeploymentConfigurator(); List<DeploymentSource> sources = deploymentConfigurator.getAvailableDeploymentSources(); DeploymentSource source = ContainerUtil.getFirstItem(sources); if (source != null) { setDeploymentSource(source); setDeploymentConfiguration(deploymentConfigurator.createDefaultConfiguration(source)); DeploymentSourceType type = source.getType(); //noinspection unchecked type.setBuildBeforeRunTask(this, source); } } }