String dbf = shpPath.substring(0, shpPath.length() - 3) + "dbf";
DBFDriver dbfDriver = new DBFDriver();
dbfDriver.setDataSourceFactory(dsf);
dbfDriver.writeFile(new File(dbf), new SpatialToAlphanumericalDataSourceAdapter(dataSource));
} catch (IOException e) {
throw new DriverException(e);
} catch (ShapefileException e) {
throw new DriverException(e);
}
}