code: public void writeFile(String aFileName, URL aData) throws Exception
     {
        
        Object lock = retrieveLock(aFileName);      
        synchronized (lock) 
        {
           IO.writeFile(aFileName, aData);
        }
     }
docs: Write binary file data
  
  @param aFileName
  @param aData
  @throws Exception