if (!CVUtility.isModuleVisible("InvoiceHistory", userID, this.dataSource))
throw new AuthorizationFailedException("Invoice- createInvoice");
InvoiceVO returnVO = null;
try {
InitialContext ic = CVUtility.getInitialContext();
InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
InvoiceLocal remote = home.create(invoiceDetail, userID, this.dataSource);
remote.setDataSource(this.dataSource);
returnVO = remote.getInvoiceVO();
} catch (Exception e) {
logger.error("[createInvoice]: Exception", e);
}