@Path("userGroups")
    public DirectoryResource<UserGroup, APIUserGroup> getUserGroupDirectoryResource()
            throws GuacamoleException {
        return userGroupDirectoryResourceFactory.create(authenticatedUser,
                userContext, userContext.getUserGroupDirectory());
    }
Returns a new resource which represents the UserGroup Directory contained
within the UserContext exposed by this UserContextResource.

@return
    A new resource which represents the UserGroup Directory contained
    within the UserContext exposed by this UserContextResource.

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