use apache commons io and java 1.7 nio for the file processing