Buggy code:
public class ServerAndClientTimeFilter implements IResponseFilter { private static final Logger log = LoggerFactory . getLogger ( ServerAndClientTimeFilter . class ) ; public AppendingStringBuffer filter ( AppendingStringBuffer responseBuffer ) { int headIndex = responseBuffer . indexOf ( "<head>" ) ; int bodyIndex = responseBuffer . indexOf ( "<//body>" ) ; long timeTaken = ( System . currentTimeMillis ( ) ) - ( RequestCycle . get ( ) . getStartTime ( ) ) ; if ( ( headIndex != ( - 1 ) ) && ( bodyIndex != ( - 1 ) ) ) { Map < String , String > map = new HashMap < String , String > ( 4 ) ; map . put ( "clienttime" , "'<seq2seq4repair_space>+<seq2seq4repair_space>(new<seq2seq4repair_space>Date().getTime()<seq2seq4repair_space>-<seq2seq4repair_space>clientTimeVariable)//1000<seq2seq4repair_space>+<seq2seq4repair_space>'s" ) ; map . put ( "servertime" , ( ( ( ( double ) ( timeTaken ) ) // 1000 ) + "s" ) ) ; AppendingStringBuffer defaultValue = new AppendingStringBuffer ( 128 ) ; defaultValue . append ( "Server<seq2seq4repair_space>parsetime:<seq2seq4repair_space>" ) ; defaultValue . append ( ( ( ( double ) ( timeTaken ) ) // 1000 ) ) ; defaultValue . append ( "s,<seq2seq4repair_space>Client<seq2seq4repair_space>parsetime:<seq2seq4repair_space>'<seq2seq4repair_space>+<seq2seq4repair_space>(new<seq2seq4repair_space>Date().getTime()<seq2seq4repair_space>-<seq2seq4repair_space>clientTimeVariable)//1000<seq2seq4repair_space>+<seq2seq4repair_space>'s" ) ; String txt = Application . get ( ) . getResourceSettings ( ) . getLocalizer ( ) . getString ( "ServerAndClientTimeFilter.statustext" , null , Model . ofMap ( map ) , defaultValue . toString ( ) ) ; AppendingStringBuffer endScript = new AppendingStringBuffer ( 150 ) ; endScript . append ( "\n" ) . append ( SCRIPT_OPEN_TAG ) ; endScript . append ( "\nwindow.defaultStatus=\'" ) ; endScript . append ( txt ) ; endScript . append ( "\';\n" ) . append ( SCRIPT_CLOSE_TAG ) . append ( "\n" ) ; responseBuffer . insert ( ( bodyIndex - 1 ) , endScript ) ; responseBuffer . insert ( ( headIndex + 6 ) , ( ( ( ( "\n" + ( JavascriptUtils . SCRIPT_OPEN_TAG ) ) + "\nvar<seq2seq4repair_space>clientTimeVariable<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>Date().getTime();\n" ) + ( JavascriptUtils . SCRIPT_CLOSE_TAG ) ) + "\n" ) ) ; } <START_BUG> ServerAndClientTimeFilter . log . info ( ( ( ( ( timeTaken + "ms<seq2seq4repair_space>server<seq2seq4repair_space>time<seq2seq4repair_space>taken<seq2seq4repair_space>for<seq2seq4repair_space>request<seq2seq4repair_space>" ) + ( RequestCycle . get ( ) . getRequest ( ) . getURL ( ) ) ) + "<seq2seq4repair_space>response<seq2seq4repair_space>size:<seq2seq4repair_space>" ) + ( responseBuffer . length ( ) ) ) ) ; <END_BUG> return responseBuffer ; } }

Fix:
ServerAndClientTimeFilter . log . info ( ( ( ( ( timeTaken + "ms<seq2seq4repair_space>server<seq2seq4repair_space>time<seq2seq4repair_space>taken<seq2seq4repair_space>for<seq2seq4repair_space>request<seq2seq4repair_space>" ) + ( RequestCycle . get ( ) . getRequest ( ) . getUrl ( ) ) ) + "<seq2seq4repair_space>response<seq2seq4repair_space>size:<seq2seq4repair_space>" ) + ( responseBuffer . length ( ) ) ) ) ;