String prefix = sfResolve(TempFile.ATTR_PREFIX, "", true); if (prefix.length() == 0) { throw new SmartFrogException(TempFileImpl.ERROR_PREFIX_EMPTY, this); } String suffix = sfResolve(TempFile.ATTR_SUFFIX, (String) null, false); String dir; dir = FileSystem.lookupAbsolutePath(this, TempFile.ATTR_DIRECTORY, null, null, false, null);   if (sfLog().isDebugEnabled()) { sfLog().debug("Creating temp file in dir [" + dir + "], prefix=" + prefix + ", suffix=" + suffix ); }   bind(FileSystem.createTempDir(prefix, suffix, dir)); sfReplaceAttribute(FileUsingComponent.ATTR_FILENAME, file.toString());     delete = sfResolve(ATTR_DELETE_ON_EXIT, false, false);
    public synchronized void sfStart() throws SmartFrogException, RemoteException {        super.sfStart();        String prefix = sfResolve(TempFile.ATTR_PREFIX, "", true);        if (prefix.length() == 0) {            throw new SmartFrogException(TempFileImpl.ERROR_PREFIX_EMPTY, this);        }        String suffix = sfResolve(TempFile.ATTR_SUFFIX, (String) null, false);        String dir;        dir = FileSystem.lookupAbsolutePath(this, TempFile.ATTR_DIRECTORY, null, null, false, null);        if (sfLog().isDebugEnabled()) {            sfLog().debug("Creating temp file in dir [" + dir + "], prefix=" + prefix                    + ", suffix=" + suffix );        }        //bind to the temp file        bind(FileSystem.createTempDir(prefix, suffix, dir));        sfReplaceAttribute(FileUsingComponent.ATTR_FILENAME, file.toString());        //get the delete flag        //this is only done after a successful creation of a temp dir; if it failed, then        //delete is implicitly false. This stops us from trying to delete a directory that already existed.        delete = sfResolve(ATTR_DELETE_ON_EXIT, false, false);    }