(OFBIZ-10485) The MapContext and MapStack classes are abstracting away the underlying LinkedList implementation behind a List. The problem is that the push and pop methods are implemented awkwardly by using index zero or using size() to find the ends of the collection. Thus this improvement maintains the same code signature but replaces the List interface with the Deque to utilize the getFirst(), addFirst() and addLast() functions making the code cleaner and more declaractive. Thanks: Mathieu Lirzin for the patch and explanation of your work. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836710 13f79535-47bb-0310-9956-ffa450edef68