CWE-99: Improper Control of Resource Identifiers ('Resource Injection'):
From My servlet getting ResourceResolver object and passing as a parameter to service class method, Getting veracode issue at my service class method stating at CWE-99 Resource Injection Issue with syntax resourceResolver.getResource(oldDocsPath); Please find the below screen shots from servlet to service class. Tried with @Scriptvariable , @SlingObject, @3214626 but veera code scan not clearing the issue. Can anyone please provide solution for the below.

