actionMessages.add("unknownPerson", new ActionMessage("error.exception.nonExisting",
actionMessages.add("unknownPerson", new ActionMessage("error.exception.nonExistingPerson",
    public ActionForward photoUpload(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        IUserView userView = SessionUtils.getUserView(request);        DynaActionForm photoForm = (DynaActionForm) form;        FormFile formFile = (FormFile) photoForm.get("theFile");        String username = (String) photoForm.get("username");        ActionMessages actionMessages = new ActionMessages();        if (formFile == null || (formFile != null && formFile.getFileData().length == 0)) {            actionMessages.add("fileRequired", new ActionMessage("errors.fileRequired"));            saveMessages(request, actionMessages);            return mapping.findForward("chooseFile");        }        // process image        ByteArrayInputStream inputStream = new ByteArrayInputStream(formFile.getFileData());        BufferedImage image = ImageIO.read(inputStream);        ContentType contentType = ContentType.getContentType(formFile.getContentType());        ByteArrayOutputStream outputStream = processImage(image, contentType);        try {                        Object[] args = { outputStream.toByteArray(),                    contentType, username };            ServiceUtils.executeService(userView, "StorePersonalPhoto", args);        } catch (ExcepcaoInexistente e) {            actionMessages.add("unknownPerson", new ActionMessage("error.exception.nonExisting",                    username));            saveMessages(request, actionMessages);            return mapping.findForward("chooseFile");        }        actionMessages.add("updateCompleted", new ActionMessage("label.operator.submit.ok", ""));        saveMessages(request, actionMessages);        return mapping.findForward("chooseFile");    }