CONN-634: Modified copyFile method to use Apache Common IO API