String toId,
List<String> parentIds) throws GroundException {
CassandraConnection connection = this.dbClient.getConnection();
try {
String id = IdGenerator.generateId(edgeId);
<BUG>tags = tags.map(tagsMap ->
tagsMap.values().stream().collect(Collectors.toMap(Tag::getKey, tag -> new Tag(id, tag.getKey(), tag.getValue(), tag.getValueType())))

);</BUG>
this.richVersionFactory.insertIntoDatabase(connection, id, tags, structureVersionId, reference, parameters);

String toId,
List<String> parentIds) throws GroundException {
CassandraConnection connection = this.dbClient.getConnection();
try {
String id = IdGenerator.generateId(edgeId);
tags = tags.values().stream().collect(Collectors.toMap(Tag::getKey, tag -> new Tag(id, tag.getKey(), tag.getValue(), tag.getValueType())));
this.richVersionFactory.insertIntoDatabase(connection, id, tags, structureVersionId, reference, parameters);
