/**
   * This method is called when the handler receives a request. This class needs to be set as the
   * listener on the <code>ContentHandlerServer</code>. See {@link #register}.
   *
   * @see RequestListener#invocationRequestNotify(ContentHandlerServer)
   */
  public void invocationRequestNotify(final ContentHandlerServer server) {
    // Retrieve Invocation from the content handler server
    final Invocation invoc = server.getRequest(false);

    if (invoc == null) {
      return; // Nothing to do
    }

    int invocationStatus = invoc.getStatus();

    try {
      final Registry registry = Registry.getRegistry(getClass().getName());
      final DefaultContentHandlerRegistry defaultRegistry =
          DefaultContentHandlerRegistry.getDefaultContentHandlerRegistry(registry);
      final ApplicationDescriptor descriptor =
          defaultRegistry.getApplicationDescriptor(server.getID());

      Dialog.alert(descriptor.getName() + " invoked for: " + invoc.getURL());

      // ...
      // Other processing could be done here
      // ...

      // If there are errors or exceptions, the invocation status
      // should be updated. In this case everything is OK.
      invocationStatus = Invocation.OK;
    } finally {
      server.finish(invoc, invocationStatus);
    }
  }