Fixed representative attributes issues. Added multilevel menus support for swing app