#vulnerable code 
                                @Test
    public void testSelectAutomappedAnnotatedTransacted() {
        db() //
                .select(Person10.class) //
                .transacted() //
                .valuesOnly() //
                .get().test() //
                .awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                .assertValueCount(3) //
                .assertComplete();
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testSelectAutomappedAnnotatedTransacted() {
        try (Database db = db()) {
            db //
                    .select(Person10.class) //
                    .transacted() //
                    .valuesOnly() //
                    .get().test() //
                    .awaitDone(TIMEOUT_SECONDS, TimeUnit.SECONDS) //
                    .assertValueCount(3) //
                    .assertComplete();
        }
    }