public void ProcessComments(org.eclipse.uml2.uml.Element e1) { RefOntoUML.Element e2 = GetElement(e1); // ownedComment RefOntoUML.Comment c2; for (org.eclipse.uml2.uml.Comment c1 : e1.getOwnedComments()) { c2 = myfactory.createComment(); DealComment(c1, c2); e2.getOwnedComment().add(c2); } }