ResourcePool resourcePool = catalog.getResourcePool();
resourcePool.clear(info);
catalog.save(info);
// save the resources after saving the store
for (FeatureTypeInfo alreadyConfigured : configuredResources) {
catalog.save(alreadyConfigured);
}
LOGGER.finer("Saved store " + info.getName());
} catch (Exception e) {
LOGGER.log(Level.WARNING, "Error saving data store to catalog", e);
throw new IllegalArgumentException("Error saving data store:" + e.getMessage());