@Override
    public void filterExternalObject(UserContext userContext,
            APIConnection object) throws GuacamoleException {

        // Filter object attributes by defined schema
        object.setAttributes(filterAttributes(
                userContext.getConnectionAttributes(), object.getAttributes()));

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