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);
order.remove();
} catch (RemoveException re) {
throw new EJBException(re);
} catch (FinderException fe) {
throw new EJBException(fe);
}