dms.updateDataset(transformPojosDatasetData(dd), isToRemove, isToAdd);
List toRemove = new ArrayList(isToRemove.size()); Iterator i = isToRemove.iterator(); while (i.hasNext()) toRemove.add(transformPojosIDToIs((pojos.ImageData) i.next()));  List toAdd = new ArrayList(isToAdd.size()); i = isToAdd.iterator(); while (i.hasNext()) toAdd.add(transformPojosIDToIs((pojos.ImageData) i.next()));  dms.updateDataset(transformPojosDatasetData(dd), toRemove, toAdd);
	void updateDataset(pojos.DatasetData dd, List isToRemove, List isToAdd,					 boolean nameChange)	{		try { 			DataManagementService dms = registry.getDataManagementService();			dms.updateDataset(transformPojosDatasetData(dd), isToRemove,                                isToAdd);			//update the presentation and the dataset summary contained in the 			//datasetSummaries list accordingly.			if (datasetSummaries.size() != 0) updateDSList(dd);			else updateDatasetInPS(dd);			if (nameChange) presentation.updateDatasetInTree();            UserNotifier un = registry.getUserNotifier();            IconManager im = IconManager.getInstance(registry);            un.notifyInfo("Update dataset", "The dataset has been updated.",                     im.getIcon(IconManager.SEND_TO_DB));		} catch(DSAccessException dsae) {			String s = "Can't update the dataset: "+dd.getId()+".";			registry.getLogger().error(this, s+" Error: "+dsae);			registry.getUserNotifier().notifyError("Data Retrieval Failure", s,													dsae);		} catch(DSOutOfServiceException dsose) {				ServiceActivationRequest request = new ServiceActivationRequest(										ServiceActivationRequest.DATA_SERVICES);			registry.getEventBus().post(request);		} 	}