drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/ElementEditor.java
public static Element getTwin(Element element, boolean firstToLast) {
        Assert.isTrue(isDAVElement(element));
        String name = getNSLocalName(element);
        return getSibling(element, name, firstToLast);
    }
public static Element getTwin(Element element, boolean firstToLast) {
        Assert.isTrue(isDAVElement(element));
        String name = getNSLocalName(element);
        return getSibling(element, name, firstToLast);
    }
public static Element getTwin ( Element element , boolean firstToLast ) { Assert . isTrue ( isDAVElement ( element ) ) ; String name = getNSLocalName ( element ) ; return getSibling ( element , name , firstToLast ) ; }
Returns the first WebDAV sibling of the given element that has the
same name as the element, or <code>null</code> if no such sibling
exists. If firstToLast is true, only the sibling's next children are
searched, otherwise, only the siblings previous children are
searched. The element must not be <code>null</code> and must be a
WebDAV element.

@param element     the element whose sibling is being searched for
@param firstToLast a boolean specifying the direction to search for
the sibling among the element's siblings
@return            the sibling with the same name as the given
element, or <code>null</code> if no such element
exists
Returns the first WebDAV sibling of the given element that has the same name as the element or <code > null< / code > if no such sibling exists . If firstToLast is true only the sibling s next children are searched otherwise only the siblings previous children are searched . The element must not be <code > null< / code > and must be a WebDAV element .