// Interpret the body of a nested ownedComment as a comment-type and assign it as the EAnnotation.source of the parent.
//
if (EMOFExtendedMetaData.EMOF_OWNED_COMMENT.equals(name) && objects.peekEObject() instanceof EAnnotation)
{
EAnnotation annotation = (EAnnotation)objects.peekEObject();
EObject container = annotation.eContainer();
if (container instanceof EAnnotation)
{
EAnnotation parentAnnotation = (EAnnotation)container;
parentAnnotation.setSource(annotation.getDetails().get(EMOFExtendedMetaData.EMOF_COMMENT_BODY));
parentAnnotation.getEAnnotations().remove(annotation);