final Path path = MutablePath.make();
this.forEach((as, object) -> {
if (object instanceof DetachedVertex) {
path.extend(as, ((DetachedVertex) object).attach(graph));
} else if (object instanceof DetachedEdge) {
path.extend(as, ((DetachedEdge) object).attach(graph));
} else if (object instanceof DetachedVertexProperty) {
path.extend(as, ((DetachedVertexProperty) object).attach(graph));
} else if (object instanceof DetachedProperty) {
path.extend(as, ((DetachedProperty) object).attach(graph));
} else {