public void index(GraphObject entity, Object value) {
if (entity instanceof AbstractNode) {
NodeService nodeService = Services.getInstance().getService(NodeService.class);
AbstractNode node = (AbstractNode)entity;
Node dbNode = node.getNode();
for (NodeIndex indexName : nodeIndices()) {
Index<Node> index = nodeService.getNodeIndex(indexName);
if (index != null) {