[servlets] (change) Use generics-based Stack container