*/
public List<Order> getOrders(Class<? extends Order> orderClass, boolean subclasses, AnchorID vendorID, AnchorID customerID,
AnchorID endCustomerID, long rangeBeginIdx, long rangeEndIdx,
String[] fetchGroups, int maxFetchDepth, ProgressMonitor monitor) {
try {
TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
List<OrderID> orderIDList = tm.getOrderIDs(orderClass, subclasses, vendorID, customerID, endCustomerID, rangeBeginIdx, rangeEndIdx);
Set<OrderID> orderIDs = new HashSet<OrderID>(orderIDList);
Map<OrderID, Order> orderMap = new HashMap<OrderID, Order>(orderIDs.size());
for (Order order : getJDOObjects(null, orderIDs, fetchGroups, maxFetchDepth, monitor)) {
orderMap.put((OrderID) JDOHelper.getObjectId(order), order);