Iterator mapFeaturesIt = mapFeatures.iterator();
while (mapFeaturesIt.hasNext()) {
GeoFeature feature = (GeoFeature) mapFeaturesIt.next();
GeoMapFeature mapFeature = mapFeaturesDAO.loadMapFeatures(new Integer(map.getMapId()), new Integer(feature.getFeatureId()));
SbiGeoMapFeatures hibMapFeature = new SbiGeoMapFeatures();
SbiGeoMapFeaturesId hibMapFeatureId = new SbiGeoMapFeaturesId();
hibMapFeatureId.setMapId(mapFeature.getMapId());
hibMapFeatureId.setFeatureId(mapFeature.getFeatureId());
hibMapFeature.setId(hibMapFeatureId);
hibMapFeature.setSvgGroup(mapFeature.getSvgGroup());
hibMapFeature.setVisibleFlag(mapFeature.getVisibleFlag());
session.save(hibMapFeature);
}