* @throws IOException
*/
private boolean createWriter(DataStore datastore) throws IOException {
boolean rebuildIndex;
try {
_writer = new SpatialIndexWriter(datastore, _gmlParser,_transaction, _maxWritesInTransaction, _lock);
rebuildIndex = _writer.getFeatureSource().getSchema() == null;
}
catch (Throwable e) {
if (_writer == null) {