@Override
    public GuacamoleConfiguration getConfiguration() {
        
        // Create the GuacamoleConfiguration with current protocol
        GuacamoleConfiguration configuration = new GuacamoleConfiguration();
        configuration.setProtocol(apiConnection.getProtocol());

        // Add parameters, if available
        Map<String, String> parameters = apiConnection.getParameters();
        if (parameters != null)
            configuration.setParameters(parameters);
        
        return configuration;
    }
Creates a new APIConnectionWrapper which wraps the given APIConnection
as a Connection.

@param apiConnection
    The APIConnection to wrap.
guacamole/src/main/java/org/apache/guacamole/rest/connection/APIConnectionWrapper.java