private void persistComponentGraph(GraphDtoMapper mapper, ComponentVertex component) {
Long snapshotId = (Long) component.element().getProperty("sid");
if (snapshotId != null) {
for (PerspectiveBuilder builder : builders) {
GraphPerspectiveBuilder graphPerspectiveBuilder = (GraphPerspectiveBuilder) builder;
Perspective perspective = graphPerspectiveBuilder.getPerspectiveLoader().load(component);
if (perspective != null) {
serializePerspectiveData(mapper, component, snapshotId, graphPerspectiveBuilder);
}
}
}