Query 1:
ModelElement has 2 id properties: id and userID
idis not editableuserIDis editable. You may enter your userID as your aboveappComponent.setUserID("123456789").
But, by default, Application Component won’t support userID.
You need to enable it via Project Options, as following:
Query 2:
It is newly supported in these few weeks, please reference to following post:
Query 3:
You may call:
DiagramManager.layout(diagram, DiagramManager.LAYOUT_ORGANIC)

