Creating symbol groups

You can also create a symbol group, and add the newly created node to the group:
Object symbolGroup = engine.getModel().createNode("group");
Object symbolNode = engine.getModel().createNode("symbol");
engine.getModel().addObject(symbolGroup, null, null);//Add the group itself.
engine.getModel().addObject(symbolNode, symbolGroup, null);//Add the symbol to the group