long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis();
	public Object getContents() {				ChainDataManager chainDataManager = (ChainDataManager) dataManager;		if (modData == null) {			modData = new ModulesData();			Collection mods = chainDataManager.getModules();			Collection cats = chainDataManager.getModuleCategories();									// find uncategorized modules			Iterator iter = mods.iterator();			while (iter.hasNext()) {				ChainModuleData m = (ChainModuleData) iter.next();				if (m.getModuleCategory()== null)					modData.addUncategorizedModule(m);			}						// find root categories			if (cats != null) {				iter = cats.iterator();				while (iter.hasNext()) {					ModuleCategoryData c = (ModuleCategoryData) iter.next();					if (c.getParentCategory() == null) 						modData.addRootModuleCategory(c);					findCategoryModules(c,mods);					findCategoryChildren(c,cats);				}			}		}		return modData;	}