{
final int nbOfBraces = violation.getRuleMessage().split( "\\{" ).length - 1;
if ( this instanceof IThresholdedRule )
{
final IThresholdedRule thresholdeRule = ( IThresholdedRule ) this;
violation.replacePlaceholderInMessage( String.valueOf( thresholdeRule.getThreshold() ),
nbOfBraces - 2 );
violation.replacePlaceholderInMessage( String.valueOf( thresholdeRule.getActualValueForTheCurrentViolation() ),
nbOfBraces - 1 );
}
if ( getDescription() != null )
{
violation.appendToMessage( ". " );