private boolean setID(String fileName, int id) {
        boolean result = false;
        int i = 0;
        File tempFile = null;
        Storage tempStorage = null;

        while ((i < storageList_.size()) && (tempFile == null)) {
            tempStorage = (Storage) storageList_.get(i);
            tempFile = tempStorage.getFile(fileName);

            if (tempFile != null) {
                tempFile.setRegistrationID(id); // set registration ID
                String newName = tempFile.getName() + id;
                tempStorage.renameFile(tempFile, newName); // rename filename
                tempFile.setName(newName); // set the new lfn
                result = true;
            }
            i++;
        }
        return result;
    }