public void createQuestions(Element questions) { try { GaigsAV.questionCollection = QuestionFactory.questionCollectionFromXML(questions); } catch (QuestionParseException e) { System.out.println("ERROR: could not parse the questions."); } } // createQuestions(element)