download(url, new File(localFile), blocksize);
download(url, file, blocksize);
    public synchronized void sfStart() throws SmartFrogException,            RemoteException {        super.sfStart();        LogSF log = LogFactory.getLog(this);        String url = "NOT YET SET";        String localFile = "NOT YET SET";        try {            url = (String) sfResolve("url");            localFile =                    FileSystem.lookupAbsolutePath(this,                            ATTR_LOCALFILE,                            null,                            null,                            true,                            null);            int blocksize = ((Integer) sfResolve(ATTR_BLOCKSIZE)).intValue();            download(url, new File(localFile), blocksize);            //spawn the thread to terminate normally            ComponentHelper helper = new ComponentHelper(this);            helper.targetForTermination();        } catch (IOException e) {            String errStr = "error in downloading of url " +                    url +                    " to " +                    localFile;            if (log.isErrorEnabled()) {                log.error(errStr);            }            //TODO : Need to be revisited            throw new SmartFrogLifecycleException(e, this);        }    }