private void buildChangesetNode( final Map<UUID, Set> instanceMap, final ChangesetNode node, final Map<UUID, Set> skipMap) { final Set instance = node.getSet(); skipMap.put(instance.identity().uniqueRepresentationReference(), instance); final List<Set> containedInstances = findContentNodes(instanceMap, instance.identity().uniqueRepresentationReference()); for (final Set i : containedInstances) { final ChangesetNode childNode = new ChangesetNode(node, i); node.addChildNode(childNode); buildChangesetNode(instanceMap, childNode, skipMap); } }
private void serializeNodePath( final Serializer serializer, final ChangesetNode node, final List<String> serializedInstances) { final Set set = node.getSet(); if (set.properClass().isEqualTo(S23MKernel.coreGraphs.vertex)) { final String content = serializer.serializeInstance(set, false).getContent(); serializedInstances.add(content); final UUID uuid = node.getSet().identity().uniqueRepresentationReference(); objectPool.addArtifact( uuid.toString(), new ObjectPoolArtifact( uuid, S23MKernel.coreGraphs.graph.identity().uniqueRepresentationReference(), content)); for (final ChangesetNode childNode : node.getChildNodes()) { serializeNodePath(serializer, childNode, serializedInstances); } } }