// From here use NIO 2
Path filePathRef = Paths.get(f.toURI());
// Do somes actions using "Files" new Helper and Path class
System.out.printf("Final Parts of file path : %s\n", filePathRef.getName(filePathRef.getNameCount() - 2));
UserPrincipal owner = Files.getOwner(filePathRef, LinkOption.NOFOLLOW_LINKS);
System.out.printf("Owner of file '%s' is '%s'\n", filePathRef.toFile().getName(), owner.getName());
FileStore store = Files.getFileStore(filePathRef);
System.out.println("Storage infos");
System.out.printf(">>> Store name is '%s'\n", store.name());
System.out.printf(">>> Store is read-only '%s'\n", store.isReadOnly());
System.out.printf(">>> Store type is '%s'\n", store.type());