{
// add element to the parent's content
// consider all content to be of the form (A | B | C)*
//
CMGroupImpl group = (CMGroupImpl)parentEd.getContent();
CMNodeListImpl groupChildNodeList = (CMNodeListImpl)group.getChildNodes();
if (parentCMDocument == childCMDocument)
{
if (!groupChildNodeList.contains(childEd))
{
groupChildNodeList.add(childEd);
}
if (isLocal)
{
CMNamedNodeMapImpl localElementMap = (CMNamedNodeMapImpl)parentEd.getLocalElements();
localElementMap.put(childEd);
}
}
else
{
CMAnyElement cmAnyElement = lookupOrCreateCMAnyElement((CMDocumentImpl)parentCMDocument, uri);
if (!groupChildNodeList.contains(cmAnyElement))
{
groupChildNodeList.add(cmAnyElement);
}
}
}