public static final String LOCAL_PORT = "localPort";
protected SshConnection connection;
public SshConnectionBuilder(String type, ConnectionOptions options, AddressPortMapper mapper) {
SshConnectionType sshConnectionType = options.getEnum(CONNECTION_TYPE, SshConnectionType.class);
switch (sshConnectionType) {
<BUG>case TUNNEL:
connection = new SshTunnelConnection(type, options, mapper);
break;</BUG>
case SFTP:
connection = new SshSftpUnixConnection(type, options, mapper);

public static final String LOCAL_PORT = "localPort";
protected SshConnection connection;
public SshConnectionBuilder(String type, ConnectionOptions options, AddressPortMapper mapper) {
SshConnectionType sshConnectionType = options.getEnum(CONNECTION_TYPE, SshConnectionType.class);
switch (sshConnectionType) {
case SFTP:
connection = new SshSftpUnixConnection(type, options, mapper);
