Map resolved = ResourcePool.getParams(map, cat.getResourceLoader() );
DataAccess dataStore = DataAccessFinder.getDataStore(resolved);
if( dataStore == null ){
throw new IllegalArgumentException("Connection parameters incomplete (does not match an available data store, coverage store or wms store).");
}
DataStoreInfo info = factory.createDataStore();
info.setWorkspace(workspace);
info.setType(name);
info.getConnectionParameters().putAll(map);
try {
info.setDescription( dataStore.getInfo().getDescription());