String term1Identifier = term1.getIdentifier();
Link link = EMFfitModelFactory.eINSTANCE.createLink();
link.setVisibleContent("link1");
Factor linkedFactor = EMFfitModelFactory.eINSTANCE.createFactor();
link.setTarget(linkedFactor);
String linkIdentifier = link.getIdentifier();
Term term2 = EMFfitModelFactory.eINSTANCE.createTerm();
term2.setVisibleContent(" term2");
String term2Identifier = term2.getIdentifier();
oldHypertext.getContent().add(term1);
oldHypertext.getContent().add(link);
oldHypertext.getContent().add(term2);
//setup for new changed hypertext element
String newTerm1Content = "xxxterm1xxx xxx ";
String newLinkContent = "newlink";
String newTerm2Content = "xxxterm2xxx xxx";
Hypertext newHypertext = EMFfitModelFactory.eINSTANCE.createHypertext();
Term newTerm1 = EMFfitModelFactory.eINSTANCE.createTerm();
newTerm1.setVisibleContent(newTerm1Content);
Link newLink = EMFfitModelFactory.eINSTANCE.createLink();
newLink.setVisibleContent(newLinkContent);
Factor newLinkedFactor = EMFfitModelFactory.eINSTANCE.createFactor();
newLink.setTarget(newLinkedFactor);
Term newterm2 = EMFfitModelFactory.eINSTANCE.createTerm();
newterm2.setVisibleContent(newTerm2Content);