private DownloadJob createDownloadJob(String name,URL siteUrl,UpdateSiteToken token){
  if (siteUrl == null) {
    CorePluginLog.logError("Could not " + name + "becuase the update site was not found in the "+ "downloaded compositeArtifacts.xml");
    return null;
  }
  try {
    final File temp=FeatureUpdateManager.createTmpFile();
    temp.deleteOnExit();
    DownloadJob newDownloadJob=new DownloadJob(name,siteUrl,temp);
    newDownloadJob.addJobChangeListener(getSiteDownloadJobChangeListener(temp,token));
    return newDownloadJob;
  }
 catch (  IOException e) {
    CorePluginLog.logError(e);
    return null;
  }
}

private DownloadJob createDownloadJob ( String name , URL siteUrl , UpdateSiteToken token ) { if ( siteUrl == null ) { CorePluginLog . logError ( "Could not " + name + "becuase the update site was not found in the " + "downloaded compositeArtifacts.xml" ) ; return null ; } try { final File temp = FeatureUpdateManager . createTmpFile ( ) ; temp . deleteOnExit ( ) ; DownloadJob newDownloadJob = new DownloadJob ( name , siteUrl , temp ) ; newDownloadJob . addJobChangeListener ( getSiteDownloadJobChangeListener ( temp , token ) ) ; return newDownloadJob ; } catch ( IOException e ) { CorePluginLog . logError ( e ) ; return null ; } }
creates a download job and adds it to the download jobs list in the featureupdatemanager .
