failure.setRule( rulesService.getRuleByPluginKey( source ) );
failure.setFile( getFile( checkstyleName ) );
failure.setMessage( error.getAttribute( "message" ) );
String line = error.getAttribute( "line" );
if ( line != null && !"".equals( line ) ) {
failure.addParameter( "line", Double.valueOf( line ) );
}
String column = error.getAttribute( "column" );
if ( column != null && !"".equals( column ) ) {
failure.addParameter( "column", Double.valueOf( column ) );
}