}
for (File testFile : testFiles) {
try {
FileReader reader = new FileReader(testFile);
RecordSet input = XMLRealiser.getRecording(reader);
RecordSet output = new RecordSet();
output.setName(input.getName());
for (DocumentRealisation test : input.getRecord()) {
DocumentRealisation testOut = new DocumentRealisation();
testOut.setName(test.getName());
testOut.setDocument(test.getDocument());
String realisation = XMLRealiser.realise(test
.getDocument());
testOut.setRealisation(realisation);
output.getRecord().add(testOut);
}
String outFileName = testFile.getAbsolutePath();
outFileName = outFileName
.replaceFirst("\\.xml$", "Out.xml");