/**
   * This unfortunately requires a handle to Titan implementation since
   * com.tinkerpop.blueprints.KeyIndexableGraph#createKeyIndex does not create an index.
   */
  protected void createIndicesForVertexKeys() {
    if (!((KeyIndexableGraph) graph).getIndexedKeys(Vertex.class).isEmpty()) {
      LOG.info("Indexes already exist for graph");
      return;
    }

    LOG.info("Indexes does not exist, Creating indexes for graph");
    // todo - externalize this
    makeNameKeyIndex();
    makeKeyIndex(RelationshipProperty.TYPE.getName());
    makeKeyIndex(RelationshipProperty.TIMESTAMP.getName());
    makeKeyIndex(RelationshipProperty.VERSION.getName());
    makeInstanceIndex();
  }