addSource(entity, values, entityType);
addRelations(rlHolders, values);
addDiscriminator(values, entityType);
IndexResponse response = txClient
.prepareIndex(entityMetadata.getSchema().toLowerCase(), entityMetadata.getTableName(), keyAsString)
.setSource(values).execute().actionGet();
// IndexRequest request = new
// IndexRequest(entityMetadata.getSchema().toLowerCase(),
// entityMetadata.getEntityClazz().getSimpleName(), keyAsString);
// txClient.prepareBulk().add(request)
assert response.getId() != null;
}
finally
{
// Nothing as of now.
}