code: private void createStyleRelationship(String mappingTableName,
  			String featureTable, String baseTable, String relatedTable) {
  
  		if (!hasStyleRelationship(mappingTableName, baseTable, relatedTable)) {
  
  			// Create the extension
  			getOrCreate(featureTable);
  
  			if (baseTable.equals(ContentsId.TABLE_NAME)) {
  				if (!contentsId.has()) {
  					contentsId.getOrCreateExtension();
  				}
  			}
  
  			StyleMappingTable mappingTable = new StyleMappingTable(
  					mappingTableName);
  
  			if (relatedTable.equals(StyleTable.TABLE_NAME)) {
  				relatedTables.addAttributesRelationship(baseTable,
  						new StyleTable(), mappingTable);
  			} else {
  				relatedTables.addMediaRelationship(baseTable, new IconTable(),
  						mappingTable);
  			}
  		}
  
  	}
docs: Create a style extension relationship between a feature table and style
  extension table
  
  @param mappingTableName
  mapping table name
  @param featureTable
  feature table name
  @param baseTable
  base table name
  @param relatedTable
  related table name