final Catalog catalog = getCatalog();
DataAccess<? extends FeatureType, ? extends Feature> dataStore;
try {
// REVISIT: this may need to be done after saveing the DataStoreInfo
dataStore = info.getDataStore(new NullProgressListener());
dataStore.dispose();
} catch (IOException e) {
LOGGER.log(Level.WARNING, "Error obtaining new data store", e);
String message = e.getMessage();
if (message == null && e.getCause() != null) {