question: private String linkifyMonitor ( String line ) { if ( line != null && line . indexOf ( '<' ) >= 0 ) { String begin = line . substring ( 0 , line . indexOf ( '<' ) ) ; String monitor = line . substring ( line . indexOf ( '<' ) , line . indexOf ( '>' ) + 1 ) ; String end = line . substring ( line . indexOf ( '>' ) + 1 ) ; monitor = monitor . replaceAll ( "<" , "<a href=\"monitor://" + monitor + "\">&lt;" ) ; monitor = monitor . substring ( 0 , monitor . length ( ) - 1 ) + "&gt;</a>" ; return ( begin + monitor + end ) ; } else if ( line != null && line . indexOf ( '@' ) >= 0 ) { String begin = line . substring ( 0 , line . indexOf ( '@' ) + 1 ) ; String monitor = line . substring ( line . indexOf ( '@' ) ) ; monitor = monitor . replaceAll ( "@" , "@<a href=\"monitor://<" + monitor . substring ( 1 ) + ">\">" ) ; monitor = monitor . substring ( 0 , monitor . length ( ) - 1 ) + "</a>" ; return ( begin + monitor ) ; } else { return ( line ) ; } }
target:  add a monitor link for monitor navigation