final Item item = selectItem(request); final DynaActionForm editItemFilePermissionsForm = (DynaActionForm) form; final Integer fileItemId = getFileItemId(request); FileItem fileItem = (FileItem) rootDomainObject.readFileByOID(fileItemId);
selectItem(request); FileItem fileItem = selectFileItem(request);
    public ActionForward prepareEditItemFilePermissions(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {	final Item item = selectItem(request);        final DynaActionForm editItemFilePermissionsForm = (DynaActionForm) form;        final Integer fileItemId = getFileItemId(request);        FileItem fileItem = (FileItem) rootDomainObject.readFileByOID(fileItemId);        editItemFilePermissionsForm.set("fileItemId", fileItem.getIdInternal());        editItemFilePermissionsForm.set("itemCode", item.getIdInternal());        editItemFilePermissionsForm.set("permittedGroupType", fileItem.getFileItemPermittedGroupType().toString());        request.setAttribute("fileItem", fileItem);        return mapping.findForward("editFile");    }