}
} else {
if (repository.containsKey(valueClass)) {
returned = database.addVertex(Kind.uri.getURIFor(vertexId, valueClass));
} else if (Tuples.containsKey(valueClass)) {
TupleTransformer tupleTransformer = Tuples.get(valueClass);
returned = database.addVertex(tupleTransformer.getKind().getURIFor(vertexId, valueClass));
}
// obtain vertex for type
Vertex classVertex = classTransformer.getVertexFor(getDriver(), valueClass, CascadeType.PERSIST);
Edge toType = getDriver().createEdgeFor(returned, classVertex, TypeProperty.INSTANCE);
/*