final FileItem fileItem = new FileItem(fileDescriptor.getFilename(), displayName, fileDescriptor .getMimeType(), fileDescriptor.getChecksum(), fileDescriptor.getChecksumAlgorithm(), fileDescriptor.getSize(), fileDescriptor.getUniqueId(), permittedGroup);  item.addFileItems(fileItem);
new FileItem(item, fileDescriptor.getFilename(), displayName, fileDescriptor.getMimeType(), fileDescriptor.getChecksum(), fileDescriptor.getChecksumAlgorithm(), fileDescriptor .getSize(), fileDescriptor.getUniqueId(), permittedGroup);
    public void run(Item item, InputStream inputStream, String originalFilename,            String displayName, Group permittedGroup)            throws FenixServiceException, ExcepcaoPersistencia, DomainException {        ExecutionCourseSite site = (ExecutionCourseSite) item.getSection().getSite();                final FilePath filePath = getFilePath(item);        final FileMetadata fileMetadata = new FileMetadata(displayName, site                .getExecutionCourse().getNome());        final IFileManager fileManager = FileManagerFactory.getFileManager();        final FileDescriptor fileDescriptor = fileManager.saveFile(filePath, originalFilename,                isPublic(permittedGroup), fileMetadata, inputStream);        final FileItem fileItem = new FileItem(fileDescriptor.getFilename(), displayName, fileDescriptor                .getMimeType(), fileDescriptor.getChecksum(), fileDescriptor.getChecksumAlgorithm(),                fileDescriptor.getSize(), fileDescriptor.getUniqueId(), permittedGroup);        item.addFileItems(fileItem);    }