construct popupmenu given paramet role determin purpos action creat popupmenu paramet compli role defin action action param role role param list list popup menu action role uml mutabl link list list build menu role list target 