//TODO : how to improve performance ?
final Node n = ((NodeValue)item).getNode();
//Returns an expanded-QName for node kinds that can have names.
if (n instanceof QNameable) {
final QName qn= ((QNameable)n).getQName();
if (qn.equalsSimple(QName.EMPTY_QNAME))
{result = Sequence.EMPTY_SEQUENCE;}
else
{result = new QNameValue(context, qn);}
//For other kinds of nodes it returns the empty sequence.
} else