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;
StoreInfo preExisting = getCatalog().getStoreByName(ws, project, StoreInfo.class);
boolean storeNew = false;
if(preExisting != null) {
if(!(preExisting instanceof DataStoreInfo)) {
error(new ParamResourceModel("storeExistsNotVector", this, project));
return;