DocumentTestNode dt = (DocumentTestNode) itemType;
if (dt.getElementTest() == null) {
return DocumentType.ANYDOCUMENT;
}
ElementType eType = (ElementType) createItemType(dt.getElementTest());
return new DocumentType(eType);
}
case TEXT_TEST:
return TextType.INSTANCE;