Replace resolveConfigAndLoadToString

This method was removed by https://github.com/elasticsearch/elasticsearch/commit/3dfff8404362287e16466b37998ea0965eb1eacd#diff-f06b176696959d1967c63d5b74fd58ac in elasticsearch master branch