public LinkedListNode<E> remove() {
        previous.next = next;
        next.previous = previous;
        previous = next = null;
        return this;
    }
Removes this node from the linked list that it was a part of.
@return This node; next and previous references dropped
xmppserver/src/main/java/org/jivesoftware/util/LinkedListNode.java