code: @Path("connection")
      public DirectoryObjectResource<Connection, APIConnection> getConnection()
              throws GuacamoleException {
  
          // Return the underlying connection as a resource
          return connectionDirectoryResourceFactory
                  .create(userContext, userContext.getConnectionDirectory())
                  .getObjectResource(activeConnection.getConnectionIdentifier());
  
      }
docs: Retrieves a resource representing the Connection object that is being
  actively used.
  
  @return
  A resource representing the Connection object that is being actively
  used.
  
  @throws GuacamoleException
  If an error occurs while retrieving the Connection.