removeTemporaryLayers(store);
Project p = getMap().getProjectInternal();
if (p != null) {
if (p.eResource() != null && p.eResource().isModified()) {
p.eResource().save(ProjectPlugin.getPlugin().saveOptions);
}
/*
* when closing a map the platform wants to save the map resource,
* but if you are removing the map, its no longer available.