#vulnerable code 
                                @Test
    public void rendersSingleArtifact() throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        MatcherAssert.assertThat(
            XhtmlMatchers.xhtml(
                new RsPrint(
                    new TkApp(farm).act(
                        new RqWithUser(
                            farm,
                            new RqFake(
                                "GET",
                                "/xml/C00000000?file=roles.xml"
                            )
                        )
                    )
                ).printBody()
            ),
            XhtmlMatchers.hasXPaths("/roles")
        );
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void rendersSingleArtifact() throws Exception {
        final Farm farm = new PropsFarm(new FkFarm());
        MatcherAssert.assertThat(
            XhtmlMatchers.xhtml(
                new RsPrint(
                    new TkApp(farm).act(
                        new RqWithUser.WithInit(
                            farm,
                            new RqFake(
                                "GET",
                                "/xml/C00000000?file=roles.xml"
                            )
                        )
                    )
                ).printBody()
            ),
            XhtmlMatchers.hasXPaths("/roles")
        );
    }