try {
cli.getConsole().println("Importing from shapefile " + shp);
ProgressListener progressListener = cli.getProgressListener();
ImportOp command = cli.getGeogig().command(ImportOp.class).setAll(true)
.setTable(null).setAlter(alter).setOverwrite(!add)
.setDestinationPath(destTable).setDataStore(dataStore)
.setFidAttribute(fidAttribute)
.setAdaptToDefaultFeatureType(!forceFeatureType);
// force the import not to use paging due to a bug in the shapefile datastore
command.setUsePaging(false);
command.setProgressListener(progressListener).call();
cli.getConsole().println(shp + " imported successfully.");
} catch (GeoToolsOpException e) {
switch (e.statusCode) {
case NO_FEATURES_FOUND: