protected void print ( String text ) { String tableStart = format ( PARAMETER_TABLE_START , PARAMETER_TABLE_START ) ; String tableEnd = format ( PARAMETER_TABLE_END , PARAMETER_TABLE_END ) ; boolean containsTable = text . contains ( tableStart ) && text . contains ( tableEnd ) ; String textToPrint = containsTable ? transformPrintingTable ( text , tableStart , tableEnd ) : text ; print ( output , textToPrint . replace ( format ( PARAMETER_VALUE_START , PARAMETER_VALUE_START ) , format ( "parameterValueStart" , EMPTY ) ) . replace ( format ( PARAMETER_VALUE_END , PARAMETER_VALUE_END ) , format ( "parameterValueEnd" , EMPTY ) ) . replace ( format ( PARAMETER_VALUE_NEWLINE , PARAMETER_VALUE_NEWLINE ) , format ( "parameterValueNewline" , NL ) ) ) ; }
Prints text to output stream replacing parameter start and end placeholders