private static void generateMarkdown(UIComponentBase comp) {
        String defaultEvent = comp.getDefaultEventName();
        List<String> events = new ArrayList<>(comp.getEventNames());
        Collections.sort(events);
        String eventString = events.toString();
        eventString = eventString.substring(eventString.indexOf("[") + 1, eventString.indexOf("]"));
        System.out.println("## Ajax Behavior Events");
        System.out.println();
        System.out.println("The following AJAX behavior events are available for this component. If no event is specified the default event is called.  ");
        System.out.println("  ");
        System.out.println("**Default Event:** `" + defaultEvent + "`  ");
        System.out.println("**Available Events:** `" + eventString + "`  ");
        System.out.println();
        System.out.println("```xhtml");
        System.out.printf("<p:ajax event=\"%s\" listener=\"#{bean.handle%s}\" update=\"msgs\" />%n", defaultEvent, defaultEvent);
        System.out.println("```");
    }
Utility class to scan a component and generated the Markdown information for
the AJAX behavior events the component supports.
<p>
Execute by passing component class to the command line argument. Example:
org.primefaces.component.inputtext.InputText
primefaces/src/test/java/org/primefaces/documentation/GenerateAjaxBehaviorDoc.java