Buggy code:
public final class OldSaveService { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; static final String PRESERVE = "preserve" ; static final String XML_SPACE = "xml:space" ; private static final String ASSERTION_RESULT_TAG_NAME = "assertionResult" ; private static final String BINARY = "binary" ; private static final String DATA_TYPE = "dataType" ; private static final String ERROR = "error" ; private static final String FAILURE = "failure" ; private static final String FAILURE_MESSAGE = "failureMessage" ; private static final String LABEL = "label" ; private static final String RESPONSE_CODE = "responseCode" ; private static final String RESPONSE_MESSAGE = "responseMessage" ; private static final String SAMPLE_RESULT_TAG_NAME = "sampleResult" ; private static final String SUCCESSFUL = "success" ; private static final String THREAD_NAME = "threadName" ; private static final String TIME = "time" ; private static final String TIME_STAMP = "timeStamp" ; private static final String CSV_TIME = "elapsed" ; private static final String CSV_BYTES = "bytes" ; private static final String CSV_THREAD_COUNT1 = "grpThreads" ; private static final String CSV_THREAD_COUNT2 = "allThreads" ; private static final String CSV_URL = "URL" ; private static final String CSV_FILENAME = "Filename" ; private static final String CSV_LATENCY = "Latency" ; private static final String CSV_ENCODING = "Encoding" ; private static final SampleSaveConfiguration _saveConfig = SampleSaveConfiguration . staticConfig ( ) ; private static DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder ( ) ; private OldSaveService ( ) { } public static SampleResult makeResultFromDelimitedString ( String inputLine ) { } public static SampleResult makeResultFromDelimitedString ( String inputLine , SampleSaveConfiguration saveConfig ) { } public static String printableFieldNamesToString ( ) { } public static String printableFieldNamesToString ( SampleSaveConfiguration saveConfig ) { } public static void saveCSVStats ( Vector data , FileWriter writer ) throws IOException { } public static String resultToDelimitedString ( SampleResult sample ) { } public static String resultToDelimitedString ( SampleResult sample , String delimiter ) { } public static void saveSubTree ( HashTree subTree , OutputStream writer ) throws IOException { } public static SampleResult getSampleResult ( Configuration config ) { } private static List getConfigsFromTree ( HashTree subTree ) { } public static Configuration getConfiguration ( byte [ ] bin ) { } public static byte [ ] getBinaryData ( Configuration config ) { } public static AssertionResult getAssertionResult ( Configuration config ) { } public static Configuration getConfiguration ( AssertionResult assResult ) { } public static Configuration getConfiguration ( SampleResult result , SampleSaveConfiguration saveConfig ) { DefaultConfiguration config = new DefaultConfiguration ( OldSaveService . SAMPLE_RESULT_TAG_NAME , "JMeter<seq2seq4repair_space>Save<seq2seq4repair_space>Service" ) ; if ( saveConfig . saveTime ( ) ) { config . setAttribute ( OldSaveService . TIME , String . valueOf ( result . getTime ( ) ) ) ; } if ( saveConfig . saveLabel ( ) ) { config . setAttribute ( OldSaveService . LABEL , result . getSampleLabel ( ) ) ; } if ( saveConfig . saveCode ( ) ) { config . setAttribute ( OldSaveService . RESPONSE_CODE , result . getResponseCode ( ) ) ; } if ( saveConfig . saveMessage ( ) ) { config . setAttribute ( OldSaveService . RESPONSE_MESSAGE , result . getResponseMessage ( ) ) ; } if ( saveConfig . saveThreadName ( ) ) { config . setAttribute ( OldSaveService . THREAD_NAME , result . getThreadName ( ) ) ; } if ( saveConfig . saveDataType ( ) ) { config . setAttribute ( OldSaveService . DATA_TYPE , result . getDataType ( ) ) ; } if ( saveConfig . printMilliseconds ( ) ) { config . setAttribute ( OldSaveService . TIME_STAMP , String . valueOf ( result . getTimeStamp ( ) ) ) ; } else if ( ( saveConfig . formatter ( ) ) != null ) { String stamp = saveConfig . formatter ( ) . format ( new Date ( result . getTimeStamp ( ) ) ) ; config . setAttribute ( OldSaveService . TIME_STAMP , stamp ) ; } if ( saveConfig . saveSuccess ( ) ) { <START_BUG> config . setAttribute ( OldSaveService . SUCCESSFUL , JOrphanUtils . booleanToString ( result . isSuccessful ( ) ) ) ; <END_BUG> } SampleResult [ ] subResults = result . getSubResults ( ) ; if ( subResults != null ) { for ( int i = 0 ; i < ( subResults . length ) ; i ++ ) { config . addChild ( OldSaveService . getConfiguration ( subResults [ i ] , saveConfig ) ) ; } } AssertionResult [ ] assResults = result . getAssertionResults ( ) ; if ( saveConfig . saveSamplerData ( result ) ) { config . addChild ( OldSaveService . createConfigForString ( "samplerData" , result . getSamplerData ( ) ) ) ; } if ( ( saveConfig . saveAssertions ( ) ) && ( assResults != null ) ) { for ( int i = 0 ; i < ( assResults . length ) ; i ++ ) { config . addChild ( OldSaveService . getConfiguration ( assResults [ i ] ) ) ; } } if ( saveConfig . saveResponseData ( result ) ) { config . addChild ( OldSaveService . getConfiguration ( result . getResponseData ( ) ) ) ; } return config ; } public static Configuration getConfigForTestElement ( String named , TestElement item ) { } private static Configuration createConfigForString ( String name , String value ) { } public static synchronized HashTree loadSubTree ( InputStream in ) throws IOException { } public static TestElement createTestElement ( Configuration config ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static Collection createCollection ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static JMeterProperty createProperty ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException { } private static Map createMap ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static HashTree generateNode ( Configuration config ) { } }

Fix:
config . setAttribute ( OldSaveService . SUCCESSFUL , Boolean . toString ( result . isSuccessful ( ) ) ) ;