if (fform.getAction().equals("upload")) {
FormFile formFile = fform.getFormFile();
fileSystem.createFile(hibernateSession, Integer.parseInt(fform.getDirectoryId()), formFile.getFileName(),
formFile.getContentType(), formFile.getFileSize(), formFile.getInputStream());
} else if (fform.getAction().equals("download")) {
File file = fileSystem.getFile(hibernateSession, Integer.parseInt(fform.getFileId()));
writeFileToResponse(response, file);
} else if (fform.getAction().equals("delete")) {
fileSystem.deleteFile(hibernateSession, Integer.parseInt(fform.getFileId()));
} else if (fform.getAction().equals("mkdir")) {
int parentDirectoryId = Integer.parseInt(fform.getDirectoryId());