Modify code to JDK1.6. Change "try(IO)" and Path.getName()...