Refactored anonymous class to inner class, previous reformatting raised this case as a new issue in sonar
Compiles for 1.7 now and updated unit tests for Path