Fixing compilation issue due to missing method in 3.4.x. Changing getConfigFile to getConfigResources
(cherry picked from commit 8e1849c78bacafd8ec9e866e20f7942e4a4d0193)