case COMMENT_TEST:
return CommentType.INSTANCE;
case PI_TEST: {
PITestNode pit = (PITestNode) itemType;
if (pit.getTarget() == null) {
return ProcessingInstructionType.ANYPI;
}
return new ProcessingInstructionType(createUTF8String(pit.getTarget()));
}
case ATTRIBUTE_TEST: {
AttributeTestNode at = (AttributeTestNode) itemType;
if (at.getNameTest() == null) {