TypeAttribute.isValidKeyDefinition(definition);
type = new TitanKeyVertex(this, temporaryID.decrementAndGet(), ElementLifeCycle.New);
} else {
Preconditions.checkArgument(typeClass == TitanTypeClass.LABEL);
TypeAttribute.isValidLabelDefinition(definition);
type = new TitanLabelVertex(this, temporaryID.decrementAndGet(), ElementLifeCycle.New);
}
graph.assignID(type);
Preconditions.checkArgument(type.getID() > 0);
addProperty(type, SystemKey.TypeName, name);
addProperty(type, SystemKey.VertexState, SystemKey.VertexStates.DEFAULT.getValue());