If we were on Java 7 this whole block could be reduced to:
```
Files.move( Paths.get( tempFile.toURI() ), Paths.get( configurationFile.toURI() ),
                        StandardCopyOption.ATOMIC_MOVE, StandardCopyOption.REPLACE_EXISTING );
```