@Path("self")
    public DirectoryObjectResource<User, APIUser> getSelfResource()
            throws GuacamoleException {
        return userResourceFactory.create(authenticatedUser, userContext,
                userContext.getUserDirectory(), userContext.self());
    }
Returns a new resource which represents the User whose access rights
control the operations of the UserContext exposed by this
UserContextResource.

@return
    A new resource which represents the User whose access rights
    control the operations of the UserContext exposed by this
    UserContextResource.

@throws GuacamoleException
    If an error occurs while retrieving the User.
guacamole/src/main/java/org/apache/guacamole/rest/session/UserContextResource.java