@Override
    public void applyExternalChanges(Connection existingObject,
            APIConnection object) {

        // Build updated configuration
        GuacamoleConfiguration config = new GuacamoleConfiguration();
        config.setProtocol(object.getProtocol());
        config.setParameters(object.getParameters());

        // Update the connection
        existingObject.setConfiguration(config);
        existingObject.setParentIdentifier(object.getParentIdentifier());
        existingObject.setName(object.getName());
        existingObject.setAttributes(object.getAttributes());

    }
Translator which converts between Connection objects and APIConnection
objects.
guacamole/src/main/java/org/apache/guacamole/rest/connection/ConnectionObjectTranslator.java