* BAEL-7490 read write file in separate thread * Change the to try resources * Update the code to sync with article