Also transferResultsToLocal has simialr resource issues, e.g write.close inside try block.  Looks like you could use FileOutputStream and Spring's StreamUtils.copy to clean up the implementation.