public void deleteOrder(int orderId, int userID) throws NamingException,
AuthorizationFailedException
{
if (!CVUtility.isModuleVisible("OrderHistory", userID, this.dataSource))
throw new AuthorizationFailedException("Order- deleteOrder");
try {
InitialContext ic = CVUtility.getInitialContext();
OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
OrderLocal order = home.findByPrimaryKey(new OrderPK(orderId, this.dataSource));
order.setDataSource(this.dataSource);