title: Java USSD menu tree generation - how to
body: <p>I want to generate a tree-based menu using Java that will appear on a USSD browser. Each node may have children, ending with leaf nodes. I will also have to maintain state regarding each user who accesses this menu (like his current position on the menu) to facilitate navigation.</p>
  
  <p>Any ideas on how I may achieve the tree generation and state management?</p>