@DELETE
    public void invalidate() throws GuacamoleException {

        // Invalidate session, if it exists
        if (!authenticationService.destroyGuacamoleSession(token))
            throw new GuacamoleResourceNotFoundException("No such token.");

    }
Invalidates the GuacamoleSession exposed by this SessionResource,
including the associated authentication token.

@throws GuacamoleException
    If the authentication token originally provided when this
    SessionResource was created no longer exists.
guacamole/src/main/java/org/apache/guacamole/rest/session/SessionResource.java