insertContent method
Implementation
void insertContent(RuntimeObject contentObj, int index) {
content.insert(index, contentObj);
if (contentObj.parent != null) {
throw Exception('content is already in ${contentObj.parent}');
}
contentObj.parent = this;
tryAddNamedContent(contentObj);
}