}
if(filePath.endsWith("wss")){
writer = new WSSWriter(data, result, outputFile);
}
if(filePath.endsWith("pdf")){
writer = new PDFWriter(data, result, outputFile, pageSetup, coverPage, author, projectDesc);
}
if (writer!=null) {
writer.writeAll();
}else
throw new Exception("Unsupported File Format");