getCatalog().add(ws);
getCatalog().add(nsi);
}
// build/reuse the store
String storeType = new DirectoryDataStoreFactory().getDisplayName();
Map<String, Serializable> params = new HashMap<String, Serializable>();
params.put(DirectoryDataStoreFactory.URLP.key, new File(directory).toURI().toURL().toString());
params.put(DirectoryDataStoreFactory.NAMESPACE.key, new URI(ns).toString());
DataStoreInfo si;