/**
   * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT.
   *
   * <p>In previous versions of Wicket, request listeners were manually registered by calling this
   * method. Now there is a first class RequestListenerInterface object which should be constructed
   * as a constant member of the interface to enable automatic interface registration.
   *
   * <p>Adds a request listener interface to the map of interfaces that can be invoked by outsiders.
   *
   * @param requestListenerInterface The request listener interface object
   */
  private void registerRequestListenerInterface(
      final RequestListenerInterface requestListenerInterface) {
    // Check that a different interface method with the same name has not
    // already been registered
    final RequestListenerInterface existingInterface =
        RequestListenerInterface.forName(requestListenerInterface.getName());
    if (existingInterface == null) {
      // Save this interface method by the non-qualified class name
      interfaces.put(requestListenerInterface.getName(), requestListenerInterface);

      log.info("registered listener interface " + this);
    }
  }