#vulnerable code 
                                @Test
    public void addsClaims() throws Exception {
        final Farm farm = new PropsFarm();
        final Project project = new Pmo(farm);
        new ClaimOut().type("hello").postTo(project);
        final XML xml = new Claims(project).iterate().iterator().next();
        try (final Footprint footprint = new Footprint(farm, project)) {
            footprint.open(xml);
            footprint.close(xml);
            MatcherAssert.assertThat(
                footprint.collection().find(
                    Filters.eq("project", project.pid())
                ),
                Matchers.iterableWithSize(1)
            );
        }
    } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void addsClaims() throws Exception {
        final Farm farm = new PropsFarm();
        final Project project = farm.find("@id='FOOTPRNTX'").iterator().next();
        new ClaimOut().type("hello").postTo(project);
        final XML xml = new Claims(project).iterate().iterator().next();
        try (final Footprint footprint = new Footprint(farm, project)) {
            footprint.open(xml);
            footprint.close(xml);
            MatcherAssert.assertThat(
                footprint.collection().find(
                    Filters.eq("project", project.pid())
                ),
                Matchers.iterableWithSize(1)
            );
        }
    }