How can I build nested right-click popup menu like this

Popup1
|
|--sub1
|
|--sub1.1