class FeatureImporter {

    public void importFeatures(GeoPackage geopackage, Map<String, GeoPackageFeatureLayer> featureLayers,
            CancellableTaskActivity ta, ProgressModel model)
    {
        for (Entry<String, GeoPackageFeatureLayer> entry : featureLayers.entrySet())
        {
            String featureTable = entry.getKey();
            FeatureDao featureDao = geopackage.getFeatureDao(featureTable);
            List<Map<String, Serializable>> importedData = myTableImporter.importFeatures(featureDao, ta, model);
            entry.getValue().getData().addAll(importedData);

            if (ta.isCancelled())
            {
                break;
            }
        }
    }

}