public static void saveIndividualRoute(final List<RouteItem> routeItems) {
        withAccessLock(() -> {

            init();

            database.beginTransaction();
            try {
                database.execSQL("DELETE FROM " + dbTableRoute);
                final SQLiteStatement insertRouteItem = PreparedStatement.INSERT_ROUTEITEM.getStatement();
                int precedence = 0;
                for (RouteItem item : routeItems) {
                    insertRouteItemHelper(insertRouteItem, item, ++precedence);
                }
                database.setTransactionSuccessful();
            } catch (final Exception e) {
                Log.e("Saving route failed", e);
            } finally {
                database.endTransaction();
            }
        });
    }
Persists the given {@code Route} into the database.

@param route a route to save
main/src/main/java/cgeo/geocaching/storage/DataStore.java