final Entry data, final StandardTitanTx tx) {
TitanType type = tx.getExistingType(relation.typeId);
if (type.isPropertyKey()) {
assert relation.direction == Direction.OUT;
return new CacheProperty(relation.relationId, (TitanKey) type, vertex, relation.getValue(), data);
}
if (type.isEdgeLabel()) {
InternalVertex otherVertex = tx.getExistingVertex(relation.getOtherVertexId());
switch (relation.direction) {