if (!CVUtility.isModuleVisible("InvoiceHistory", userID, this.dataSource))
throw new AuthorizationFailedException("Invoice- updateInvoice");
try {
InitialContext ic = CVUtility.getInitialContext();
InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
InvoiceLocal invoice = home.findByPrimaryKey(new InvoicePK(invoiceDetail.getInvoiceId(),
this.dataSource));
invoice.setDataSource(this.dataSource);
invoice.setInvoiceVO(invoiceDetail, userID);
} catch (Exception e) {
logger.error("[updateInvoice]: Exception", e);