public static INodeFilter getNodeTestFilter(SequenceType sType) {
INodeFilter filter;
final NodeType nodeType = (NodeType) sType.getItemType();
switch (nodeType.getNodeKind()) {
case ATTRIBUTE: {
AttributeType aType = (AttributeType) nodeType;
NameTest nameTest = aType.getNameTest();
byte[] uri = nameTest.getUri();
byte[] localName = nameTest.getLocalName();
final UTF8StringPointable urip = (UTF8StringPointable) (uri == null ? null
: UTF8StringPointable.FACTORY.createPointable());
final UTF8StringPointable localp = (UTF8StringPointable) (localName == null ? null