    @Test
    public void shouldBeAbleToFindSinglePathBetweenTwoNodes() throws Exception
    {
        long n1 = helper.createNode();
        long n2 = helper.createNode();
        helper.createRelationship( "knows", n1, n2 );
        Map<String, Object> config = MapUtil.map( "max depth", 3, "algorithm", "shortestPath", "to",
                Long.toString( n2 ), "relationships", MapUtil.map( "type", "knows", "direction", "out" ) );
        String payload = JsonHelper.createJsonFrom( config );

        Response response = service.singlePath( n1, payload );

        assertThat( response.getStatus(), is( 200 ) );
        try ( Transaction transaction = graph.beginTx() )
        {
            Map<String, Object> resultAsMap = output.getResultAsMap();
            assertThat( (Integer) resultAsMap.get( "length" ), is( 1 ) );
        }
    }

    @Test
    public void shouldBeAbleToFindSinglePathBetweenTwoNodes() throws Exception
    {
        long n1 = helper.createNode();
        long n2 = helper.createNode();
        helper.createRelationship( "knows", n1, n2 );
        Map<String, Object> config = MapUtil.map( "max depth", 3, "algorithm", "shortestPath", "to",
                Long.toString( n2 ), "relationships", MapUtil.map( "type", "knows", "direction", "out" ) );
        String payload = JsonHelper.createJsonFrom( config );

        Response response = service.singlePath( n1, payload );

        assertThat( response.getStatus(), is( 200 ) );
        Transaction transaction = graph.beginTx();
        try
        {
            Map<String, Object> resultAsMap = output.getResultAsMap();
            assertThat( (Integer) resultAsMap.get( "length" ), is( 1 ) );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public shouldBeAbleToFindSinglePathBetweenTwoNodes() : void from class org.neo4j.server.rest.web.RestfulGraphDatabaseTest


    @Test
    public void shouldBeAbleToFindSinglePathBetweenTwoNodesEvenWhenAskingForAllPaths() throws Exception
    {
        long n1 = helper.createNode();
        long n2 = helper.createNode();
        helper.createRelationship( "knows", n1, n2 );
        Map<String, Object> config = MapUtil.map( "max depth", 3, "algorithm", "shortestPath", "to",
                Long.toString( n2 ), "relationships", MapUtil.map( "type", "knows", "direction", "out" ) );
        String payload = JsonHelper.createJsonFrom( config );

        Response response = service.allPaths( n1, payload );

        assertThat( response.getStatus(), is( 200 ) );
        try ( Transaction transaction = graph.beginTx() )
        {
            List<Object> resultAsList = output.getResultAsList();
            assertThat( resultAsList.size(), is( 1 ) );
        }
    }

    @Test
    public void shouldBeAbleToFindSinglePathBetweenTwoNodesEvenWhenAskingForAllPaths() throws Exception
    {
        long n1 = helper.createNode();
        long n2 = helper.createNode();
        helper.createRelationship( "knows", n1, n2 );
        Map<String, Object> config = MapUtil.map( "max depth", 3, "algorithm", "shortestPath", "to",
                Long.toString( n2 ), "relationships", MapUtil.map( "type", "knows", "direction", "out" ) );
        String payload = JsonHelper.createJsonFrom( config );

        Response response = service.allPaths( n1, payload );

        assertThat( response.getStatus(), is( 200 ) );
        Transaction transaction = graph.beginTx();
        try
        {
            List<Object> resultAsList = output.getResultAsList();
            assertThat( resultAsList.size(), is( 1 ) );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public shouldBeAbleToFindSinglePathBetweenTwoNodesEvenWhenAskingForAllPaths() : void from class org.neo4j.server.rest.web.RestfulGraphDatabaseTest


    @Test
    public void nodeAutoindexingSupposedToWork() throws JsonParseException
    {
        String type = "node";
        Response response = service.startAutoIndexingProperty( type, "myAutoIndexedProperty" );
        assertEquals( 204, response.getStatus() );

        response = service.setAutoIndexerEnabled( type, "true" );
        assertEquals( 204, response.getStatus() );

        service.createNode( "{\"myAutoIndexedProperty\" : \"value\"}" );

        try ( Transaction transaction = graph.beginTx() )
        {
            IndexHits<Node> indexResult = database.getGraph().index().getNodeAutoIndexer().getAutoIndex().get(
                    "myAutoIndexedProperty", "value" );
            assertEquals( 1, indexResult.size() );
        }
    }

    @Test
    public void nodeAutoindexingSupposedToWork() throws JsonParseException
    {
        String type = "node";
        Response response = service.startAutoIndexingProperty( type, "myAutoIndexedProperty" );
        assertEquals( 204, response.getStatus() );

        response = service.setAutoIndexerEnabled( type, "true" );
        assertEquals( 204, response.getStatus() );

        service.createNode( "{\"myAutoIndexedProperty\" : \"value\"}" );

        Transaction transaction = graph.beginTx();
        try
        {
            IndexHits<Node> indexResult = database.getGraph().index().getNodeAutoIndexer().getAutoIndex().get(
                    "myAutoIndexedProperty", "value" );
            assertEquals( 1, indexResult.size() );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public nodeAutoindexingSupposedToWork() : void from class org.neo4j.server.rest.web.RestfulGraphDatabaseTest


    @Override
    public NodeRepresentation createNode( Map<String, Object> properties, Label... labels ) throws
            PropertyValueException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            NodeRepresentation nodeRepresentation = super.createNode( properties, labels );
            transaction.success();
            return nodeRepresentation;
        }
    }

    @Override
    public NodeRepresentation createNode( Map<String, Object> properties, Label... labels ) throws
            PropertyValueException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            NodeRepresentation nodeRepresentation = super.createNode( properties, labels );
            transaction.success();
            return nodeRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createNode(properties Map<String,Object>, labels Label...) : NodeRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public NodeRepresentation getNode( long nodeId ) throws NodeNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            NodeRepresentation node = super.getNode( nodeId );
            transaction.success();
            return node;
        }
    }

    @Override
    public NodeRepresentation getNode( long nodeId ) throws NodeNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            NodeRepresentation node = super.getNode( nodeId );
            transaction.success();
            return node;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNode(nodeId long) : NodeRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void deleteNode( long nodeId ) throws NodeNotFoundException, ConstraintViolationException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.deleteNode( nodeId );
            transaction.success();
        }
    }

    @Override
    public void deleteNode( long nodeId ) throws NodeNotFoundException, ConstraintViolationException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.deleteNode( nodeId );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteNode(nodeId long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void setNodeProperty( long nodeId, String key, Object value ) throws PropertyValueException,
            NodeNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.setNodeProperty( nodeId, key, value );
            transaction.success();
        }
    }

    @Override
    public void setNodeProperty( long nodeId, String key, Object value ) throws PropertyValueException,
            NodeNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.setNodeProperty( nodeId, key, value );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setNodeProperty(nodeId long, key String, value Object) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeNodeProperty( long nodeId, String key ) throws NodeNotFoundException, NoSuchPropertyException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeNodeProperty( nodeId, key );
            transaction.success();
        }
    }

    @Override
    public void removeNodeProperty( long nodeId, String key ) throws NodeNotFoundException, NoSuchPropertyException
    {
        Transaction transaction = graph.beginTx();
        try
        {
            super.removeNodeProperty( nodeId, key );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeNodeProperty(nodeId long, key String) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void setAllNodeProperties( long nodeId, Map<String, Object> properties ) throws PropertyValueException,
            NodeNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.setAllNodeProperties( nodeId, properties );
            transaction.success();
        }
    }

    @Override
    public void setAllNodeProperties( long nodeId, Map<String, Object> properties ) throws PropertyValueException,
            NodeNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.setAllNodeProperties( nodeId, properties );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setAllNodeProperties(nodeId long, properties Map<String,Object>) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeAllNodeProperties( long nodeId ) throws NodeNotFoundException, PropertyValueException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeAllNodeProperties( nodeId );
            transaction.success();
        }
    }

    @Override
    public void removeAllNodeProperties( long nodeId ) throws NodeNotFoundException, PropertyValueException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeAllNodeProperties( nodeId );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeAllNodeProperties(nodeId long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void addLabelToNode( long nodeId, Collection<String> labelNames ) throws NodeNotFoundException,
            BadInputException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.addLabelToNode( nodeId, labelNames );
            transaction.success();
        }
    }

    @Override
    public void addLabelToNode( long nodeId, Collection<String> labelNames ) throws NodeNotFoundException,
            BadInputException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.addLabelToNode( nodeId, labelNames );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public addLabelToNode(nodeId long, labelNames Collection<String>) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeLabelFromNode( long nodeId, String labelName ) throws NodeNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeLabelFromNode( nodeId, labelName );
            transaction.success();
        }
    }

    @Override
    public void removeLabelFromNode( long nodeId, String labelName ) throws NodeNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeLabelFromNode( nodeId, labelName );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeLabelFromNode(nodeId long, labelName String) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public IndexRepresentation createNodeIndex( Map<String, Object> indexSpecification )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            IndexRepresentation indexRepresentation = super.createNodeIndex( indexSpecification );
            transaction.success();
            return indexRepresentation;
        }
    }

    @Override
    public IndexRepresentation createNodeIndex( Map<String, Object> indexSpecification )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            IndexRepresentation indexRepresentation = super.createNodeIndex( indexSpecification );
            transaction.success();
            return indexRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createNodeIndex(indexSpecification Map<String,Object>) : IndexRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public RelationshipRepresentation createRelationship( long startNodeId, long endNodeId, String type, Map<String,
            Object> properties ) throws StartNodeNotFoundException, EndNodeNotFoundException, PropertyValueException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            RelationshipRepresentation relationshipRepresentation = super.createRelationship( startNodeId, endNodeId,
                    type,
                    properties );
            transaction.success();
            return relationshipRepresentation;
        }
    }

    @Override
    public RelationshipRepresentation createRelationship( long startNodeId, long endNodeId, String type, Map<String,
            Object> properties ) throws StartNodeNotFoundException, EndNodeNotFoundException, PropertyValueException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            RelationshipRepresentation relationshipRepresentation = super.createRelationship( startNodeId, endNodeId,
                    type,
                    properties );
            transaction.success();
            return relationshipRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createRelationship(startNodeId long, endNodeId long, type String, properties Map<String,Object>) : RelationshipRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public RelationshipRepresentation getRelationship( long relationshipId ) throws RelationshipNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            RelationshipRepresentation relationship = super.getRelationship( relationshipId );
            transaction.success();
            return relationship;
        }
    }

    @Override
    public RelationshipRepresentation getRelationship( long relationshipId ) throws RelationshipNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            RelationshipRepresentation relationship = super.getRelationship( relationshipId );
            transaction.success();
            return relationship;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRelationship(relationshipId long) : RelationshipRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void deleteRelationship( long relationshipId ) throws RelationshipNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.deleteRelationship( relationshipId );
            transaction.success();
        }
    }

    @Override
    public void deleteRelationship( long relationshipId ) throws RelationshipNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.deleteRelationship( relationshipId );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteRelationship(relationshipId long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public ListRepresentation getNodeRelationships( long nodeId, RelationshipDirection direction, Collection<String>
            types ) throws NodeNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            ListRepresentation nodeRelationships = super.getNodeRelationships( nodeId, direction, types );
            transaction.success();
            return nodeRelationships;
        }
    }

    @Override
    public ListRepresentation getNodeRelationships( long nodeId, RelationshipDirection direction, Collection<String>
            types ) throws NodeNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            ListRepresentation nodeRelationships = super.getNodeRelationships( nodeId, direction, types );
            transaction.success();
            return nodeRelationships;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodeRelationships(nodeId long, direction RelationshipDirection, types Collection<String>) : ListRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void setAllRelationshipProperties( long relationshipId, Map<String, Object> properties ) throws
            PropertyValueException, RelationshipNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.setAllRelationshipProperties( relationshipId, properties );
            transaction.success();
        }
    }

    @Override
    public void setAllRelationshipProperties( long relationshipId, Map<String, Object> properties ) throws
            PropertyValueException, RelationshipNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.setAllRelationshipProperties( relationshipId, properties );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setAllRelationshipProperties(relationshipId long, properties Map<String,Object>) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void setRelationshipProperty( long relationshipId, String key, Object value ) throws
            PropertyValueException, RelationshipNotFoundException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.setRelationshipProperty( relationshipId, key, value );
            transaction.success();
        }
    }

    @Override
    public void setRelationshipProperty( long relationshipId, String key, Object value ) throws
            PropertyValueException, RelationshipNotFoundException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.setRelationshipProperty( relationshipId, key, value );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setRelationshipProperty(relationshipId long, key String, value Object) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeAllRelationshipProperties( long relationshipId ) throws RelationshipNotFoundException,
            PropertyValueException
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeAllRelationshipProperties( relationshipId );
            transaction.success();
        }
    }

    @Override
    public void removeAllRelationshipProperties( long relationshipId ) throws RelationshipNotFoundException,
            PropertyValueException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeAllRelationshipProperties( relationshipId );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeAllRelationshipProperties(relationshipId long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeRelationshipProperty( long relationshipId, String key ) throws RelationshipNotFoundException,
            NoSuchPropertyException
    {

        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeRelationshipProperty( relationshipId, key );
            transaction.success();
        }
    }

    @Override
    public void removeRelationshipProperty( long relationshipId, String key ) throws RelationshipNotFoundException,
            NoSuchPropertyException
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeRelationshipProperty( relationshipId, key );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeRelationshipProperty(relationshipId long, key String) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public IndexedEntityRepresentation addToNodeIndex( String indexName, String key, String value, long nodeId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            IndexedEntityRepresentation indexedEntityRepresentation = super.addToNodeIndex( indexName, key, value,
                    nodeId );
            transaction.success();
            return indexedEntityRepresentation;
        }
    }

    @Override
    public IndexedEntityRepresentation addToNodeIndex( String indexName, String key, String value, long nodeId )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            IndexedEntityRepresentation indexedEntityRepresentation = super.addToNodeIndex( indexName, key, value,
                    nodeId );
            transaction.success();
            return indexedEntityRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public addToNodeIndex(indexName String, key String, value String, nodeId long) : IndexedEntityRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeFromNodeIndex( String indexName, String key, String value, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeFromNodeIndex( indexName, key, value, id );
            transaction.success();
        }
    }

    @Override
    public void removeFromNodeIndex( String indexName, String key, String value, long id )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeFromNodeIndex( indexName, key, value, id );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeFromNodeIndex(indexName String, key String, value String, id long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeFromNodeIndexNoValue( String indexName, String key, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeFromNodeIndexNoValue( indexName, key, id );
            transaction.success();
        }
    }

    @Override
    public void removeFromNodeIndexNoValue( String indexName, String key, long id )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeFromNodeIndexNoValue( indexName, key, id );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeFromNodeIndexNoValue(indexName String, key String, id long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public void removeFromNodeIndexNoKeyValue( String indexName, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            super.removeFromNodeIndexNoKeyValue( indexName, id );
            transaction.success();
        }
    }

    @Override
    public void removeFromNodeIndexNoKeyValue( String indexName, long id )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            super.removeFromNodeIndexNoKeyValue( indexName, id );
            transaction.success();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removeFromNodeIndexNoKeyValue(indexName String, id long) : void from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public PathRepresentation findSinglePath( long startId, long endId, Map<String, Object> map )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            PathRepresentation singlePath = super.findSinglePath( startId, endId, map );
            transaction.success();
            return singlePath;
        }
    }

    @Override
    public PathRepresentation findSinglePath( long startId, long endId, Map<String, Object> map )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            PathRepresentation singlePath = super.findSinglePath( startId, endId, map );
            transaction.success();
            return singlePath;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public findSinglePath(startId long, endId long, map Map<String,Object>) : PathRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public ListRepresentation getNodesWithLabel( String labelName, Map<String, Object> properties )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            ListRepresentation nodesWithLabel = super.getNodesWithLabel( labelName, properties );
            transaction.success();
            return nodesWithLabel;
        }
    }

    @Override
    public ListRepresentation getNodesWithLabel( String labelName, Map<String, Object> properties )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            ListRepresentation nodesWithLabel = super.getNodesWithLabel( labelName, properties );
            transaction.success();
            return nodesWithLabel;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodesWithLabel(labelName String, properties Map<String,Object>) : ListRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public IndexDefinitionRepresentation createSchemaIndex( String labelName, Iterable<String> propertyKey )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            IndexDefinitionRepresentation indexDefinitionRepresentation = super.createSchemaIndex( labelName,
                    propertyKey );
            transaction.success();
            return indexDefinitionRepresentation;
        }
    }

    @Override
    public IndexDefinitionRepresentation createSchemaIndex( String labelName, Iterable<String> propertyKey )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            IndexDefinitionRepresentation indexDefinitionRepresentation = super.createSchemaIndex( labelName,
                    propertyKey );
            transaction.success();
            return indexDefinitionRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createSchemaIndex(labelName String, propertyKey Iterable<String>) : IndexDefinitionRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public boolean dropSchemaIndex( String labelName, String propertyKey )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            boolean result = super.dropSchemaIndex( labelName, propertyKey );
            transaction.success();
            return result;
        }
    }

    @Override
    public boolean dropSchemaIndex( String labelName, String propertyKey )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            boolean result = super.dropSchemaIndex( labelName, propertyKey );
            transaction.success();
            return result;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public dropSchemaIndex(labelName String, propertyKey String) : boolean from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public ConstraintDefinitionRepresentation createPropertyUniquenessConstraint( String labelName,
                                                                                Iterable<String> propertyKeys )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            ConstraintDefinitionRepresentation constraintDefinitionRepresentation = super
                    .createPropertyUniquenessConstraint( labelName, propertyKeys );
            transaction.success();
            return constraintDefinitionRepresentation;
        }
    }

    @Override
    public ConstraintDefinitionRepresentation createPropertyUniquenessConstraint( String labelName,
                                                                                Iterable<String> propertyKeys )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            ConstraintDefinitionRepresentation constraintDefinitionRepresentation = super
                    .createPropertyUniquenessConstraint( labelName, propertyKeys );
            transaction.success();
            return constraintDefinitionRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createPropertyUniquenessConstraint(labelName String, propertyKeys Iterable<String>) : ConstraintDefinitionRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public boolean dropPropertyUniquenessConstraint( String labelName, Iterable<String> propertyKeys )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            boolean result = super.dropPropertyUniquenessConstraint( labelName, propertyKeys );
            transaction.success();
            return result;
        }
    }

    @Override
    public boolean dropPropertyUniquenessConstraint( String labelName, Iterable<String> propertyKeys )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            boolean result = super.dropPropertyUniquenessConstraint( labelName, propertyKeys );
            transaction.success();
            return result;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public dropPropertyUniquenessConstraint(labelName String, propertyKeys Iterable<String>) : boolean from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public ConstraintDefinitionRepresentation createPropertyExistenceConstraint( String labelName,
            Iterable<String> propertyKeys )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            ConstraintDefinitionRepresentation constraintDefinitionRepresentation = super
                    .createPropertyExistenceConstraint( labelName, propertyKeys );
            transaction.success();
            return constraintDefinitionRepresentation;
        }
    }

    @Override
    public ConstraintDefinitionRepresentation createPropertyExistenceConstraint( String labelName,
            Iterable<String> propertyKeys )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            ConstraintDefinitionRepresentation constraintDefinitionRepresentation = super
                    .createPropertyExistenceConstraint( labelName, propertyKeys );
            transaction.success();
            return constraintDefinitionRepresentation;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createPropertyExistenceConstraint(labelName String, propertyKeys Iterable<String>) : ConstraintDefinitionRepresentation from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public boolean dropPropertyExistenceConstraint( String labelName, Iterable<String> propertyKeys )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            boolean result = super.dropPropertyExistenceConstraint( labelName, propertyKeys );
            transaction.success();
            return result;
        }
    }

    @Override
    public boolean dropPropertyExistenceConstraint( String labelName, Iterable<String> propertyKeys )
    {
        Transaction transaction = graph.beginTx();

        try
        {
            boolean result = super.dropPropertyExistenceConstraint( labelName, propertyKeys );
            transaction.success();
            return result;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public dropPropertyExistenceConstraint(labelName String, propertyKeys Iterable<String>) : boolean from class org.neo4j.server.rest.web.TransactionWrappedDatabaseActions


    @Override
    public Response addToNodeIndex( String indexName, String unique, String uniqueness,
                                    String postBody )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.addToNodeIndex( indexName, unique, uniqueness,
                    postBody );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response addToNodeIndex( String indexName, String unique, String uniqueness,
                                    String postBody )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.addToNodeIndex( indexName, unique, uniqueness,
                    postBody );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public addToNodeIndex(indexName String, unique String, uniqueness String, postBody String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response createRelationship( long startNodeId, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.createRelationship( startNodeId, body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response createRelationship( long startNodeId, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.createRelationship( startNodeId, body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createRelationship(startNodeId long, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteNodeIndex( String indexName )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteNodeIndex( indexName );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response deleteNodeIndex( String indexName )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteNodeIndex( indexName );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteNodeIndex(indexName String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getNodeRelationships( long nodeId, DatabaseActions.RelationshipDirection direction,
                                          AmpersandSeparatedCollection types )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.getNodeRelationships( nodeId, direction, types );
            return response;
        }
    }

    @Override
    public Response getNodeRelationships( long nodeId, DatabaseActions.RelationshipDirection direction,
                                          AmpersandSeparatedCollection types )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.getNodeRelationships( nodeId, direction, types );
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodeRelationships(nodeId long, direction DatabaseActions.RelationshipDirection, types AmpersandSeparatedCollection) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteAllNodeProperties( long nodeId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteAllNodeProperties( nodeId );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response deleteAllNodeProperties( long nodeId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteAllNodeProperties( nodeId );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteAllNodeProperties(nodeId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getAllNodeProperties( long nodeId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.getAllNodeProperties( nodeId );
            return response;
        }
    }

    @Override
    public Response getAllNodeProperties( long nodeId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.getAllNodeProperties( nodeId );
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getAllNodeProperties(nodeId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response traverse( long startNode, TraverserReturnType returnType, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.traverse( startNode, returnType, body );
            return response;
        }
    }

    @Override
    public Response traverse( long startNode, TraverserReturnType returnType, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.traverse( startNode, returnType, body );
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public traverse(startNode long, returnType TraverserReturnType, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response createNode( String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.createNode( body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response createNode( String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.createNode( body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createNode(body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteAllRelationshipProperties( long relationshipId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteAllRelationshipProperties( relationshipId );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response deleteAllRelationshipProperties( long relationshipId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteAllRelationshipProperties( relationshipId );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteAllRelationshipProperties(relationshipId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response addToRelationshipIndex( String indexName, String unique, String uniqueness,
                                            String postBody )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.addToRelationshipIndex( indexName, unique, uniqueness,
                    postBody );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response addToRelationshipIndex( String indexName, String unique, String uniqueness,
                                            String postBody )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.addToRelationshipIndex( indexName, unique, uniqueness,
                    postBody );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public addToRelationshipIndex(indexName String, unique String, uniqueness String, postBody String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedNodes( String indexName, String key, String value )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.getIndexedNodes( indexName, key, value );
            return response;
        }
    }

    @Override
    public Response getIndexedNodes( String indexName, String key, String value )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.getIndexedNodes( indexName, key, value );
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedNodes(indexName String, key String, value String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getRelationshipIndexRoot()
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.getRelationshipIndexRoot();
            return response;
        }
    }

    @Override
    public Response getRelationshipIndexRoot()
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.getRelationshipIndexRoot();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRelationshipIndexRoot() : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response setRelationshipProperty( long relationshipId, String key, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.setRelationshipProperty( relationshipId, key, body );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response setRelationshipProperty( long relationshipId, String key, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.setRelationshipProperty( relationshipId, key, body );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setRelationshipProperty(relationshipId long, key String, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response allPaths( long startNode, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.allPaths( startNode, body );
        }
    }

    @Override
    public Response allPaths( long startNode, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.allPaths( startNode, body );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public allPaths(startNode long, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response singlePath( long startNode, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.singlePath( startNode, body );
        }
    }

    @Override
    public Response singlePath( long startNode, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.singlePath( startNode, body );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public singlePath(startNode long, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response createPagedTraverser( long startNode, TraverserReturnType returnType, int pageSize,
                                          int leaseTimeInSeconds, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.createPagedTraverser( startNode, returnType, pageSize,
                    leaseTimeInSeconds, body );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response createPagedTraverser( long startNode, TraverserReturnType returnType, int pageSize,
                                          int leaseTimeInSeconds, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.createPagedTraverser( startNode, returnType, pageSize,
                    leaseTimeInSeconds, body );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public createPagedTraverser(startNode long, returnType TraverserReturnType, pageSize int, leaseTimeInSeconds int, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response pagedTraverse( String traverserId,
                                   TraverserReturnType returnType )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.pagedTraverse( traverserId, returnType );
        }
    }

    @Override
    public Response pagedTraverse( String traverserId,
                                   TraverserReturnType returnType )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.pagedTraverse( traverserId, returnType );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public pagedTraverse(traverserId String, returnType TraverserReturnType) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response removePagedTraverser( String traverserId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.removePagedTraverser( traverserId );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response removePagedTraverser( String traverserId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.removePagedTraverser( traverserId );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public removePagedTraverser(traverserId String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteFromRelationshipIndex( String indexName, String key, String value, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteFromRelationshipIndex( indexName, key, value, id );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response deleteFromRelationshipIndex( String indexName, String key, String value, long id )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteFromRelationshipIndex( indexName, key, value, id );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteFromRelationshipIndex(indexName String, key String, value String, id long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteFromNodeIndex( String indexName, String key, String value, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteFromNodeIndex( indexName, key, value, id );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response deleteFromNodeIndex( String indexName, String key, String value, long id )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteFromNodeIndex( indexName, key, value, id );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteFromNodeIndex(indexName String, key String, value String, id long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedRelationshipsByQuery( String indexName,
                                                    String key, String query, String order )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getIndexedRelationshipsByQuery( indexName, key, query, order );
        }
    }

    @Override
    public Response getIndexedRelationshipsByQuery( String indexName,
                                                    String key, String query, String order )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getIndexedRelationshipsByQuery( indexName, key, query, order );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedRelationshipsByQuery(indexName String, key String, query String, order String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedRelationshipsByQuery( String indexName,
                                                    String query, String order )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getIndexedRelationshipsByQuery( indexName, query, order );
        }
    }

    @Override
    public Response getIndexedRelationshipsByQuery( String indexName,
                                                    String query, String order )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getIndexedRelationshipsByQuery( indexName, query, order );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedRelationshipsByQuery(indexName String, query String, order String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response stopAutoIndexingProperty( String type, String property )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.stopAutoIndexingProperty( type, property );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response stopAutoIndexingProperty( String type, String property )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.stopAutoIndexingProperty( type, property );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public stopAutoIndexingProperty(type String, property String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response startAutoIndexingProperty( String type, String property )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.startAutoIndexingProperty( type, property );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response startAutoIndexingProperty( String type, String property )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.startAutoIndexingProperty( type, property );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public startAutoIndexingProperty(type String, property String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getAutoIndexedProperties( String type )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getAutoIndexedProperties( type );
        }
    }

    @Override
    public Response getAutoIndexedProperties( String type )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getAutoIndexedProperties( type );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getAutoIndexedProperties(type String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response setAutoIndexerEnabled( String type, String enable )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.setAutoIndexerEnabled( type, enable );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response setAutoIndexerEnabled( String type, String enable )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.setAutoIndexerEnabled( type, enable );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setAutoIndexerEnabled(type String, enable String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response isAutoIndexerEnabled( String type )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.isAutoIndexerEnabled( type );
        }
    }

    @Override
    public Response isAutoIndexerEnabled( String type )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.isAutoIndexerEnabled( type );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public isAutoIndexerEnabled(type String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedRelationships( String indexName, String key,
                                             String value )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getIndexedRelationships( indexName, key, value );
        }
    }

    @Override
    public Response getIndexedRelationships( String indexName, String key,
                                             String value )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getIndexedRelationships( indexName, key, value );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedRelationships(indexName String, key String, value String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedNodesByQuery( String indexName, String key,
                                            String query, String order )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getIndexedNodesByQuery( indexName, key, query, order );
        }
    }

    @Override
    public Response getIndexedNodesByQuery( String indexName, String key,
                                            String query, String order )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getIndexedNodesByQuery( indexName, key, query, order );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedNodesByQuery(indexName String, key String, query String, order String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getRelationshipFromIndexUri( String indexName, String key, String value, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getRelationshipFromIndexUri( indexName, key, value, id );
        }
    }

    @Override
    public Response getRelationshipFromIndexUri( String indexName, String key, String value, long id )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getRelationshipFromIndexUri( indexName, key, value, id );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRelationshipFromIndexUri(indexName String, key String, value String, id long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getNodeFromIndexUri( String indexName, String key, String value, long id )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getNodeFromIndexUri( indexName, key, value, id );
        }
    }

    @Override
    public Response getNodeFromIndexUri( String indexName, String key, String value, long id )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getNodeFromIndexUri( indexName, key, value, id );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodeFromIndexUri(indexName String, key String, value String, id long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteRelationshipIndex( String indexName )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteRelationshipIndex( indexName );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response deleteRelationshipIndex( String indexName )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteRelationshipIndex( indexName );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteRelationshipIndex(indexName String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getIndexedNodesByQuery( String indexName, String
            query, String order )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getIndexedNodesByQuery( indexName, query, order );
        }
    }

    @Override
    public Response getIndexedNodesByQuery( String indexName, String
            query, String order )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getIndexedNodesByQuery( indexName, query, order );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getIndexedNodesByQuery(indexName String, query String, order String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response jsonCreateRelationshipIndex( String json )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.jsonCreateRelationshipIndex( json );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response jsonCreateRelationshipIndex( String json )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.jsonCreateRelationshipIndex( json );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public jsonCreateRelationshipIndex(json String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response jsonCreateNodeIndex( String json )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.jsonCreateNodeIndex( json );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response jsonCreateNodeIndex( String json )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.jsonCreateNodeIndex( json );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public jsonCreateNodeIndex(json String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getNodeIndexRoot()
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getNodeIndexRoot();
        }
    }

    @Override
    public Response getNodeIndexRoot()
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getNodeIndexRoot();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodeIndexRoot() : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteRelationshipProperty( long relationshipId, String key )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteRelationshipProperty( relationshipId, key );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response deleteRelationshipProperty( long relationshipId, String key )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteRelationshipProperty( relationshipId, key );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteRelationshipProperty(relationshipId long, key String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response setAllRelationshipProperties( long relationshipId, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.setAllRelationshipProperties( relationshipId, body );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response setAllRelationshipProperties( long relationshipId, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.setAllRelationshipProperties( relationshipId, body );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setAllRelationshipProperties(relationshipId long, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getRelationshipProperty( long relationshipId,
                                             String key )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getRelationshipProperty( relationshipId, key );
        }
    }

    @Override
    public Response getRelationshipProperty( long relationshipId,
                                             String key )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getRelationshipProperty( relationshipId, key );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRelationshipProperty(relationshipId long, key String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getAllRelationshipProperties( long relationshipId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getAllRelationshipProperties( relationshipId );
        }
    }

    @Override
    public Response getAllRelationshipProperties( long relationshipId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getAllRelationshipProperties( relationshipId );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getAllRelationshipProperties(relationshipId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteRelationship( long relationshipId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteRelationship( relationshipId );
            transaction.success();
            return response;
        }
    }

    @Override
    public Response deleteRelationship( long relationshipId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteRelationship( relationshipId );
            transaction.success();
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteRelationship(relationshipId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getRelationship( long relationshipId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getRelationship( relationshipId );
        }
    }

    @Override
    public Response getRelationship( long relationshipId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getRelationship( relationshipId );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRelationship(relationshipId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteNodeProperty( long nodeId, String key )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteNodeProperty( nodeId, key );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response deleteNodeProperty( long nodeId, String key )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteNodeProperty( nodeId, key );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteNodeProperty(nodeId long, key String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getNodeProperty( long
            nodeId, String key )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getNodeProperty( nodeId, key );
        }
    }

    @Override
    public Response getNodeProperty( long
            nodeId, String key )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getNodeProperty( nodeId, key );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNodeProperty(nodeId long, key String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response setAllNodeProperties( long nodeId, String body )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.setAllNodeProperties( nodeId, body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response setAllNodeProperties( long nodeId, String body )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.setAllNodeProperties( nodeId, body );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public setAllNodeProperties(nodeId long, body String) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response deleteNode( long nodeId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            Response response = restfulGraphDatabase.deleteNode( nodeId );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
    }

    @Override
    public Response deleteNode( long nodeId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            Response response = restfulGraphDatabase.deleteNode( nodeId );
            if ( response.getStatus() < 300 )
            {
                transaction.success();
            }
            return response;
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public deleteNode(nodeId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getNode( long nodeId )
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getNode( nodeId );
        }
    }

    @Override
    public Response getNode( long nodeId )
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getNode( nodeId );
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getNode(nodeId long) : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


    @Override
    public Response getRoot()
    {
        try ( Transaction transaction = graph.beginTx() )
        {
            return restfulGraphDatabase.getRoot();
        }
    }

    @Override
    public Response getRoot()
    {
        Transaction transaction = graph.beginTx();
        try
        {
            return restfulGraphDatabase.getRoot();
        }
        finally
        {
            transaction.finish();
        }
    }

Try With Resources try(Transaction transaction=graph.beginTx()) in method public getRoot() : Response from class org.neo4j.server.rest.web.TransactionWrappingRestfulGraphDatabase


        @Override
        public IndexDefinition createIndexDefinition( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().indexCreate( labelId, propertyKeyId );
                    return new IndexDefinitionImpl( this, label, propertyKey, false );
                }
                catch ( AlreadyIndexedException | AlreadyConstrainedException | AddIndexFailureException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new ConstraintViolationException( e.getMessage(), e );
                }
            }
        }

        @Override
        public IndexDefinition createIndexDefinition( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().indexCreate( labelId, propertyKeyId );
                    return new IndexDefinitionImpl( this, label, propertyKey, false );
                }
                catch ( AlreadyIndexedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( AlreadyConstrainedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( AddIndexFailureException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new ConstraintViolationException( e.getMessage(), e );
                }
            }
        }

Merge Catch [catch(AlreadyIndexedException e), catch(AlreadyConstrainedException e), catch(AddIndexFailureException e)] to catch(AlreadyIndexedException|AlreadyConstrainedException|AddIndexFailureException e) in method public createIndexDefinition(label Label, propertyKey String) : IndexDefinition from class org.neo4j.kernel.impl.coreapi.schema.SchemaImpl.GDBSchemaActions


        @Override
        public ConstraintDefinition createPropertyUniquenessConstraint( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().uniquePropertyConstraintCreate( labelId, propertyKeyId );
                    return new PropertyConstraintDefinition( this, label, propertyKey, ConstraintType.UNIQUENESS );
                }
                catch ( AlreadyConstrainedException | CreateConstraintFailureException | AlreadyIndexedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new InvalidTransactionTypeException( e.getMessage(), e );
                }
            }
        }

        @Override
        public ConstraintDefinition createPropertyUniquenessConstraint( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().uniquePropertyConstraintCreate( labelId, propertyKeyId );
                    return new PropertyConstraintDefinition( this, label, propertyKey, ConstraintType.UNIQUENESS );
                }
                catch ( AlreadyConstrainedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( CreateConstraintFailureException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( AlreadyIndexedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new InvalidTransactionTypeException( e.getMessage(), e );
                }
            }
        }

Merge Catch [catch(AlreadyConstrainedException e), catch(CreateConstraintFailureException e), catch(AlreadyIndexedException e)] to catch(AlreadyConstrainedException|CreateConstraintFailureException|AlreadyIndexedException e) in method public createPropertyUniquenessConstraint(label Label, propertyKey String) : ConstraintDefinition from class org.neo4j.kernel.impl.coreapi.schema.SchemaImpl.GDBSchemaActions


        @Override
        public ConstraintDefinition createPropertyExistenceConstraint( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().mandatoryPropertyConstraintCreate( labelId, propertyKeyId );
                    return new PropertyConstraintDefinition( this, label, propertyKey, ConstraintType.MANDATORY );
                }
                catch ( AlreadyConstrainedException | CreateConstraintFailureException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new InvalidTransactionTypeException( e.getMessage(), e );
                }
            }
        }

        @Override
        public ConstraintDefinition createPropertyExistenceConstraint( Label label, String propertyKey )
        {
            try ( Statement statement = ctxSupplier.get() )
            {
                try
                {
                    int labelId = statement.schemaWriteOperations().labelGetOrCreateForName( label.name() );
                    int propertyKeyId = statement.schemaWriteOperations().propertyKeyGetOrCreateForName( propertyKey );
                    statement.schemaWriteOperations().mandatoryPropertyConstraintCreate( labelId, propertyKeyId );
                    return new PropertyConstraintDefinition( this, label, propertyKey, ConstraintType.MANDATORY );
                }
                catch ( AlreadyConstrainedException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( CreateConstraintFailureException e )
                {
                    throw new ConstraintViolationException(
                            e.getUserMessage( new StatementTokenNameLookup( statement.readOperations() ) ), e );
                }
                catch ( IllegalTokenNameException e )
                {
                    throw new IllegalArgumentException( e );
                }
                catch ( TooManyLabelsException e )
                {
                    throw new IllegalStateException( e );
                }
                catch ( InvalidTransactionTypeKernelException e )
                {
                    throw new InvalidTransactionTypeException( e.getMessage(), e );
                }
            }
        }

Merge Catch [catch(AlreadyConstrainedException e), catch(CreateConstraintFailureException e)] to catch(AlreadyConstrainedException|CreateConstraintFailureException e) in method public createPropertyExistenceConstraint(label Label, propertyKey String) : ConstraintDefinition from class org.neo4j.kernel.impl.coreapi.schema.SchemaImpl.GDBSchemaActions


    public Result hasVersion( File storeFile, String expectedVersion )
    {
        String storeFilename = storeFile.getName();
        try ( PagedFile file = pageCache.map( storeFile, pageCache.pageSize() ) )
        {
            if ( file.getLastPageId() == -1 )
            {
                return new Result( Outcome.storeVersionNotFound, null, storeFilename );
            }

            String actualVersion = readVersion( file, expectedVersion.length() );
            if ( actualVersion == null )
            {
                return new Result( Outcome.storeVersionNotFound, null, storeFilename );
            }

            if ( !actualVersion.startsWith( typeDescriptor( expectedVersion ) ) )
            {
                return new Result( Outcome.storeVersionNotFound, actualVersion, storeFilename );
            }

            if ( !expectedVersion.equals( actualVersion ) )
            {
                return new Result( Outcome.unexpectedUpgradingStoreVersion, actualVersion, storeFilename );
            }
        }
        catch ( IOException e )
        {
            return new Result( Outcome.missingStoreFile, null, storeFilename );
        }

        return new Result( Outcome.ok, null, storeFilename );
    }

    public Result hasVersion( File storeFile, String expectedVersion )
    {
        StoreChannel fileChannel = null;
        String storeFilename = storeFile.getName();
        byte[] expectedVersionBytes = UTF8.encode( expectedVersion );
        try
        {
            if ( !fs.fileExists( storeFile ) )
            {
                return new Result( Outcome.missingStoreFile, null, storeFilename );
            }

            fileChannel = fs.open( storeFile, "r" );
            if ( fileChannel.size() < expectedVersionBytes.length )
            {
                return new Result( Outcome.storeVersionNotFound, null, storeFilename );
            }

            String actualVersion = readVersion( fileChannel, expectedVersionBytes.length );
            if ( !actualVersion.startsWith( typeDescriptor( expectedVersion ) ) )
            {
                return new Result( Outcome.storeVersionNotFound, actualVersion, storeFilename );
            }

            if ( !expectedVersion.equals( actualVersion ) )
            {
                return new Result( Outcome.unexpectedUpgradingStoreVersion, actualVersion, storeFilename );
            }
        }
        catch ( IOException e )
        {
            throw new RuntimeException( e );
        }
        finally
        {
            if ( fileChannel != null )
            {
                try
                {
                    fileChannel.close();
                }
                catch ( IOException e )
                {
                    // Ignore exception on close
                }
            }
        }
        return new Result( Outcome.ok, null, storeFilename );
    }

Try With Resources try(PagedFile file=pageCache.map(storeFile,pageCache.pageSize())) in method public hasVersion(storeFile File, expectedVersion String) : Result from class org.neo4j.kernel.impl.storemigration.StoreVersionCheck