Map<String, Serializable> params = new HashMap<String, Serializable>();
params.put("url", outputPointsShapeFile.toURI().toURL());
params.put("create spatial index", Boolean.TRUE);
ShapefileDataStore dStore = (ShapefileDataStore) factory.createNewDataStore(params);
dStore.createSchema(featureType);
dStore.forceSchemaCRS(mapCrs);
JGrassToolsPlugin.getDefault().writeToShapefile(dStore, newCollection);
JGrassToolsPlugin.getDefault().addServiceToCatalogAndMap(outputPointsShapeFile.getAbsolutePath(), true, true,
new NullProgressMonitor());