catch (Exception e) {
Log.error("TradeJpaAm:buy(" + userID + "," + symbol + "," + quantity + ") --> failed", e);
/* On exception - cancel the order */
// TODO figure out how to do this with JPA
if (order != null)
order.cancel();
entityManager.getTransaction().rollback();
// throw new EJBException(e);
throw new RuntimeException(e);