try {
monitor.beginTask("Load Delivery Date Information", 500);
TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
Collection<ArticleContainerDeliveryDateDTO> dtos = tm.getArticleContainerDeliveryDateDTOs(queries);
for (ArticleContainerDeliveryDateDTO dto : dtos) {
ArticleContainer ac = getArticleContainer(dto.getArticleContainerID(), fetchGroups, maxFetchDepth, new SubProgressMonitor(monitor, 100 / dtos.size()));
dto.setArticleContainer(ac);
Collection<Article> articles = ArticleDAO.sharedInstance().getArticles(dto.getArticleIDs(), fetchGroups, maxFetchDepth, new SubProgressMonitor(monitor, 300 / dtos.size()));
for (Article article : articles) {
ArticleID articleID = (ArticleID) JDOHelper.getObjectId(article);
dto.addArticle(articleID, article);