All you need to do is define a group with an unique ID, I have checked the implementation if group has different id's it will create a divider.
Example menu, creating the separator:
hope this helps
UPDATE
for menu item may be you can use this
and actionLayout file will be