Resource resolver can not locate configuration file
I'm having a problem with the ResourceResolver locating a configuration xml file in my local author instance under apps. Despite attempting various approaches, such as specifying relative and absolute paths, the configResource continues to return null for the file resource. Also the ResourceResolver is using a AEM service user account to access the file. Here's the path for CONFIG_FILE_NAME - "/apps/site/config.author/com.mim.aem.core.service.validpaths.impl.ValidPathsServiceImpl.xml";
@9944223
public List<String> getValidPaths() {
List<String> validPaths = new ArrayList<>();
try (ResourceResolver resourceResolver = ResourceResolverUtil.getResourceResolver(resolverFactory)) {
Resource configResource = resourceResolver.getResource(CONFIG_FILE_NAME);
if (configResource != null) {
String xmlContent = configResource.getValueMap().get("jcr:content", String.class);
///XML logic here