Extracted 'getNodeType()' from NLMImporter.