private InternalType filterAndTranslate(ExternalType object)
            throws GuacamoleException {

        // Filter and sanitize the external object
        translator.filterExternalObject(userContext, object);

        // Translate to the internal type
        return translator.toInternalObject(object);
    }
Filter and sanitize the provided external object, translate to the
internal type, and return the translated internal object.

@param object
    The external object to filter and translate.

@return
    The filtered and translated internal object.

@throws GuacamoleException
    If an error occurs while filtering or translating the external
    object.
guacamole/src/main/java/org/apache/guacamole/rest/directory/DirectoryResource.java