Exception exep = Executions.getCurrent().getSession().getAttribute(org.springframework.security.web.authentication.AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY); if (exep != null) { if (exep instanceof org.springframework.security.authentication.CredentialsExpiredException) { com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria.openWindow("/gui/seguridad/cambiaContrasena.zul", org.zkoss.util.resource.Labels.getLabel("winCambiaContrasena.title"), new HashMap(), 2); } else { Clients.alert(org.zkoss.util.resource.Labels.getLabel("winLogin.lblloginIncorreto"), org.zkoss.util.resource.Labels.getLabel("winLogin.title"), Messagebox.INFORMATION); } }