private void serializePerspectiveData(GraphDtoMapper mapper, ComponentVertex component, Long snapshotId,
GraphPerspectiveBuilder builder) {
Graph subGraph = SubGraph.extract(component.element(), builder.path());
String data = write(subGraph);
mapper.insert(new GraphDto()
.setData(data)
.setFormat("graphson")
.setPerspective(builder.getPerspectiveLoader().getPerspectiveKey())
.setVersion(1)
.setResourceId((Long) component.element().getProperty("rid"))