if (this.getRecaptchaAfterEnabled()) {
String remoteAddr = ServletActionContext.getRequest().getRemoteAddr();
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();
String privateKey = this.getConfigManager().getParam(JpwebdynamicformSystemConstants.RECAPTCHA_PRIVATEKEY_PARAM_NAME);
reCaptcha.setPrivateKey(privateKey);
ReCaptchaResponse reCaptchaResponse = reCaptcha.checkAnswer(remoteAddr,
this.getRecaptcha_challenge_field(), this.getRecaptcha_response_field());
if (!reCaptchaResponse.isValid()) {
this.addFieldError("recaptcha_response_field", this.getText("Errors.webdynamicform.captcha.notValid"));
}
}