refactoring. Remove commons-io dependency