public LinkedListNode<E> getLast() {
        LinkedListNode<E> node = head.previous;
        if (node == head) {
            return null;
        }
        return node;
    }
Returns the last linked list node in the list.

@return the last element of the list.
xmppserver/src/main/java/org/jivesoftware/util/LinkedList.java