Refactoring of getPathToJSONFile method from NodeDataProvider.