/** Create Interview Questions to a selected Interview Guide */ public void createQuestionsForGuide() { try { InterviewQuestionEntity interviewQuestion = interviewQuestionFacade.createQuestionForGuide( questionName, selectedInterviewEntity, answerType); lstInterviewQuestionEntity = interviewQuestionFacade.getInterviewQuestionEntityByInterview( selectedInterviewEntity.getInterviewId()); interviewEntityFacade.mergeQuestionsInGuide(selectedInterviewEntity, interviewQuestion); } catch (EJBException ex) { Logger.getLogger(ApplicationWebManagem.class.getName()).log(Level.SEVERE, null, ex); } catch (InterviewQuestionNameAlreadyExistsException | MustIntroduceInterviewQuestionException ex) { Logger.getLogger(GuideWebManagem.class.getName()).log(Level.SEVERE, null, ex); JSFUtil.addErrorMessage(ex.getMessage()); } }