ILayer layer=map.getMapLayers().get(0);
FeatureCollection<SimpleFeatureType, SimpleFeature> collection = layer.getResource(FeatureSource.class, null).getFeatures();
SimpleFeature feature=collection.features().next();
IIssue original=new FeatureIssue(Priority.WARNING, "test description", layer, feature, "groupID"); //$NON-NLS-1$ //$NON-NLS-2$
XMLMemento memento=XMLMemento.createWriteRoot("memento"); //$NON-NLS-1$
XMLMemento viewMemento=XMLMemento.createWriteRoot("viewMemento"); //$NON-NLS-1$
original.save(memento);
original.getViewMemento(viewMemento);
FeatureIssue restored=new FeatureIssue();
restored.init(memento, viewMemento, original.getId(), original.getGroupId(), original.getBounds());
restored.setDescription(original.getDescription());