public String getXML() throws KettleException {
    // See PDI-15781
    boolean sendResultXmlWithStatus = EnvUtil.getSystemProperty( "KETTLE_COMPATIBILITY_SEND_RESULT_XML_WITH_FULL_STATUS", "N" ).equalsIgnoreCase( "Y" );
    return getXML( sendResultXmlWithStatus );
  }
@Test
  public void testGetXML() throws KettleException {
    SlaveServerTransStatus transStatus = new SlaveServerTransStatus();
    RowMetaAndData rowMetaAndData = new RowMetaAndData();
    String testData = "testData";
    rowMetaAndData.addValue( new ValueMetaString(), testData );
    List<RowMetaAndData> rows = new ArrayList<>();
    rows.add( rowMetaAndData );
    Result result = new Result();
    result.setRows( rows );
    transStatus.setResult( result );
    //PDI-15781
    Assert.assertFalse( transStatus.getXML().contains( testData ) );
    //PDI-17061
    Assert.assertTrue( transStatus.getXML( true ).contains( testData ) );
  }