spring batch - Java file system exception when deleting file with NIO Files.delete() -


i getting following exception,

java.nio.file.filesystemexception: c:\users\abcd.zip: process cannot access file because being used process.      @ sun.nio.fs.windowsexception.translatetoioexception(unknown source) ~[na:1.7.0_75]     @ sun.nio.fs.windowsexception.rethrowasioexception(unknown source) ~[na:1.7.0_75]     @ sun.nio.fs.windowsexception.rethrowasioexception(unknown source) ~[na:1.7.0_75]     @ sun.nio.fs.windowsfilesystemprovider.impldelete(unknown source) ~[na:1.7.0_75]     @ sun.nio.fs.abstractfilesystemprovider.deleteifexists(unknown source) ~[na:1.7.0_75]     @ java.nio.file.files.deleteifexists(unknown source) ~[na:1.7.0_75] 

i understand file opened process how can find out process has lock on this? i'm using code in spring integration , spring batch once file download ftp server delivered transformer convert spring integration message job launch request.