if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
throw new AuthorizationFailedException("Expense- getExpense");
ExpenseVO expenseVO = null;
try {
InitialContext ic = CVUtility.getInitialContext();
ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseID, this.dataSource));
expense.setDataSource(this.dataSource);
expenseVO = expense.getExpenseVO();
} catch (Exception e) {
logger.error("[getExpenseVO]: Exception", e);
}