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

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

    }
Translator which converts between SharingProfile objects and
APISharingProfile objects.
guacamole/src/main/java/org/apache/guacamole/rest/sharingprofile/SharingProfileObjectTranslator.java