public LinkedListNode<E> addLast(E object) {
        return new LinkedListNode<>(object, head, head.previous);
    }
Adds an object to the end of the list by automatically creating a
a new node and adding it to the end of the list.

@param object the object to add to the end of the list.
@return the node created to wrap the object.
xmppserver/src/main/java/org/jivesoftware/util/LinkedList.java