@Override
    public APIUser toExternalObject(User object)
            throws GuacamoleException {
        return new APIUser(object);
    }
Translator which converts between User objects and APIUser objects.
guacamole/src/main/java/org/apache/guacamole/rest/user/UserObjectTranslator.java