public ActionForward inputValidationCode(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response) {
    final String code = (String) getFromRequest(request, "validationCode");
    final String extId = (String) getFromRequest(request, "partyContactValidation");

    if (StringUtils.isEmpty(code) || StringUtils.isEmpty(extId)) {
      addActionMessage("contacts", request, "error.contacts.validation.token.empty");
      return mapping.findForward("inputValidationCode");
    }
    PartyContactValidation partyContactValidation;

    final PhysicalAddressValidationBean validationBean =
        getRenderedObject("physicalAddressValidationBean");
    if (validationBean != null) {
      partyContactValidation = validationBean.getValidation();
    } else {
      partyContactValidation = FenixFramework.getDomainObject(extId);
      partyContactValidation.processValidation(code);
    }
    return forwardToInputValidationCode(
        mapping, actionForm, request, response, partyContactValidation.getPartyContact());
  }
 public ActionForward validatePhysicalAddress(
     ActionMapping mapping,
     ActionForm actionForm,
     HttpServletRequest request,
     HttpServletResponse response)
     throws IOException {
   PhysicalAddressBean physicalAddressBean = getRenderedObject("physicalAddressBean");
   final PhysicalAddressValidationBean validationBean = physicalAddressBean.getValidationBean();
   validationBean
       .getValidation()
       .setFile(
           validationBean.getFileName(),
           validationBean.getFileName(),
           validationBean.readStream());
   return backToShowInformation(mapping, actionForm, request, response);
 }