@Override\r
public String getConfig(String relativeConfigName) throws FileNotFoundException {\r
Path result = Paths.get(System.getProperty("user.dir", ""), relativeConfigName);\r
- if (result.toFile().exists())\r
+ if (Files.exists(result))\r
return result.toString();\r
result = Paths.get(System.getProperty("system.config.root", ""), relativeConfigName);\r
- if (result.toFile().exists())\r
+ if (Files.exists(result))\r
return result.toString();\r
throw new FileNotFoundException("Cant find configuration file " + relativeConfigName);\r
}\r