if (fileId == null) nextFileId.getAndIncrement() else fileId