public void executeInvoiceRenderingTask() throws IOException,
UBL4JException {
String invoiceFilePath = options.renderInvoice;
File invoiceFile = new File(invoiceFilePath);
if (!invoiceFile.exists()) {
throw new FailedToRenderException(String.format("The specified invoice file '%s' doesn't exist",
invoiceFile.getAbsolutePath()));
}
InvoiceType invoiceType = InvoiceTypeUnMarshaller.unMarshal(new FileInputStream(invoiceFile));
InvoiceCreationInput input = new InvoiceRenderingInput(invoiceType);
input = initOutputOptions(input);