}
CmisTestReport report = null;
if (format == null) {
report = new TextReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".txt");
}
} else {
format = format.trim().toLowerCase();
if (REPORT_TEXT.equals(format)) {
report = new TextReport();
if (output == null) {
output = new File(DEFAULT_REPORT_NAME + ".txt");
}
} else if (REPORT_XML.equals(format)) {
report = new XmlReport();