@Override
    public void setConfiguration(GuacamoleConfiguration config) {
        
        // Set protocol and parameters
        apiConnection.setProtocol(config.getProtocol());
        apiConnection.setParameters(config.getParameters());

    }
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