public DLFileEntry addFile(
      String processUUID, String title, String description, File file, String[] tags)
      throws PortalException, SystemException {
    DLFileEntry fileEntry = null;
    try {
      fileEntry =
          fileService.addFileEntry(
              currentUser.getUserId(),
              processBaseGroup.getGroupId(),
              getFolder(processUUID).getFolderId(),
              file.getName(),
              title,
              description,
              null,
              null,
              file,
              new ServiceContext());
    } catch (DuplicateFileException ex) {
      //                fileEnrty = fileService.updateFileEntry(currentUser.getUserId(),
      //                        folder.getFolderId(),
      //                        "PASSPORT.pdf",
      //                        "Паспорт",
      //                        "Это паспорт",
      //                        null,
      //                        new File("C:\\Users\\mgubaidullin\\Desktop\\docs\\PASSPORT.pdf"),
      //                        new ServiceContext());
    }

    //        fileService.updateTagsAsset(currentUser.getUserId(),
    //                fileEnrty,
    //                new java.lang.String[]{"PROCESSBASE"},
    //                tags);
    return fileEntry;
  }
 public DLFileEntry addFile(
     String processUUID,
     String title,
     String description,
     String fileName,
     byte[] body,
     String[] tags)
     throws PortalException, SystemException {
   DLFileEntry fileEntry = null;
   try {
     fileEntry =
         fileService.addFileEntry(
             currentUser.getUserId(),
             processBaseGroup.getGroupId(),
             getFolder(processUUID).getFolderId(),
             fileName,
             title,
             description,
             null,
             null,
             body,
             new ServiceContext());
   } catch (DuplicateFileException ex) {
   }
   return fileEntry;
 }