Renamed OrderContext.addAttribute to setAttribute and added some debugging lines when getting the order number generator  - TRUNK-4270