String id = getSegmentId(tableName, identifiers);
Segment segment = createSegment(table, id);
String segmentName = TextStructureNameUtils.replaceIllegalCharacters(tableName);
segment.setName(segmentName);
segment.setParentName(parentName);
SegmentOccurrence occurrence = getSegmentOccurrence(tableNode.getCardinality());
segment.setOccurrence(occurrence);
structure.addSegment(segment);
for (Node child : tableNode.getChildren()) {
addSegmentForTable(child, segmentName, structure, identifiers);
}