}
public CMElementDeclaration createCMElementDeclaration(CMDocument cmDocument, Element element, boolean isLocal)
{
String localName = element.getLocalName();
CMDocumentImpl cmDocumentImpl = (CMDocumentImpl)cmDocument;
CMNamedNodeMapImpl elementMap = isLocal ?
(CMNamedNodeMapImpl)cmDocumentImpl.getLocalElementPool() :
(CMNamedNodeMapImpl)cmDocumentImpl.getElements();
CMElementDeclarationImpl ed = (CMElementDeclarationImpl)elementMap.getNamedItem(localName);
if (ed == null)
{
//System.out.println("create ed " + localName);