question: public static boolean isSyslogNgRestarted ( String compId , String body ) { if ( compId . equalsIgnoreCase ( SYSLOG_NG_COMPONENT_NAME ) ) { final Matcher sysLogNgMatcher = SYSLOG_NG_STARTING_PATTERN . matcher ( body ) ; if ( sysLogNgMatcher . matches ( ) ) { return true ; } } return false ; }
target:  Checks to see if syslog-ng has been restarted by comparing against the component name and the matching against the SYSLOG_NG_STARTING_PATTERN regex.