public boolean renameFile(File file, String newName) {
        // check whether the new filename is conflicting with existing ones
        // or not
        boolean result = false;
        if (contains(newName)) {
            return result;
        }

        // replace the file name in the file (physical) list
        File obj = getFile(file.getName());
        if (obj != null) {
            obj.setName(newName);
        } else {
            return result;
        }

        // replace the file name in the name list
        Iterator it = nameList_.iterator();
        while (it.hasNext()) {
            String name = (String) it.next();
            if (name.equals(file.getName())) {
                file.setTransactionTime(0);
                nameList_.remove(name);
                nameList_.add(newName);
                result = true;
                break;
            }
        }

        return result;
    }