class XPathUtil {

    public static StepList rootElementSteps(final AttributeDescriptor rootElement,
            final NamespaceSupport namespaces) throws IllegalArgumentException {

        if (rootElement == null) {
            throw new NullPointerException("root");
        }
        StepList steps = new StepList();
        QName qName = Types.toQName(rootElement.getName(), namespaces);
        steps.add(new Step(qName, 1, false, false));
        return steps;
    }

}