public SocioCarteirinha getSocioCarteirinha() { if (FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("socioPesquisa") != null) { socioCarteirinha.setPessoa( ((Socios) FacesContext.getCurrentInstance() .getExternalContext() .getSessionMap() .get("socioPesquisa")) .getServicoPessoa() .getPessoa()); FacesContext.getCurrentInstance() .getExternalContext() .getSessionMap() .remove("socioPesquisa"); renderAdc = true; } return socioCarteirinha; }