if (terminate) {  ComponentHelper helper = new ComponentHelper(this); helper.targetForTermination();
if (sfLog().isInfoEnabled()){ sfLog().info(" Donwload complete. File in: "+ file);
    public synchronized void sfStart() throws SmartFrogException,            RemoteException {        super.sfStart();        log = sfGetApplicationLog();        String url = "NOT YET SET";        String localFile = "NOT YET SET";        boolean terminate = false;        try {            url = (String) sfResolve(ATTR_URL);            localFile =                    FileSystem.lookupAbsolutePath(this,                            ATTR_LOCALFILE,                            null,                            null,                            true,                            null);            int blocksize = ((Integer) sfResolve(ATTR_BLOCKSIZE)).intValue();            terminate = sfResolve(ATTR_TERMINATE, terminate, true);            File file = new File(localFile);            bind(file);            download(url, file, blocksize);            if (terminate) {                //spawn the thread to terminate normally                ComponentHelper helper = new ComponentHelper(this);                helper.targetForTermination();            }        } catch (IOException e) {            String errStr = ERROR_IN_DOWNLOAD +                    url +                    " to " +                    localFile;            if (log.isErrorEnabled()) {                log.error(errStr,e);            }            throw SmartFrogLifecycleException.forward(errStr,e, this);        }    }