Linked List REST Server written in Java