URL hostUrl = new URL(template.getParent().serverUrl);
String host = hostUrl.getHost();
LOGGER.log(Level.INFO, "Creating slave SSH launcher for " + host + ":" + port);
StandardUsernameCredentials credentials = SSHLauncher.lookupSystemCredentials(template.credentialsId);
return new SSHLauncher(host, port, credentials, template.jvmOptions , template.javaPath, template.prefixStartSlaveCmd, template.suffixStartSlaveCmd, 60);
} catch(NullPointerException ex) {
throw new RuntimeException("No mapped port 22 in host for SSL. Config=" + detail);