@Path("connectionGroups")
    public DirectoryResource<ConnectionGroup, APIConnectionGroup> getConnectionGroupDirectoryResource()
            throws GuacamoleException {
        return connectionGroupDirectoryResourceFactory.create(authenticatedUser,
                userContext, userContext.getConnectionGroupDirectory());
    }
Returns a new resource which represents the ConnectionGroup Directory
contained within the UserContext exposed by this UserContextResource.

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

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