try { choiceRankInt = Integer.parseInt(choiceRank); } catch (NumberFormatException e) { throw new NumberFormatException("ChoiceSet " + choicesetId + ", Choice " + choiceValue + " -- Rank \"" + choiceRank + "\" invalid, must be an integer"); }
    private void processChoiceSet(Signet signet, Subsystem subsystem, Element rootElem)        throws javax.naming.OperationNotSupportedException, NumberFormatException {        List choicesets = rootElem.getChildren("ChoiceSet");        Iterator choicesetIter = choicesets.iterator();        while (choicesetIter.hasNext()) {            System.out.println("- - ChoiceSet");            Element choicesetElem = (Element) choicesetIter.next();            Element choicesetIdElem = choicesetElem.getChild("Id");            String choicesetId = choicesetIdElem.getTextTrim();            System.out.println("- - - Id = " + choicesetId);            ChoiceSet choiceset = signet.newChoiceSet(subsystem, choicesetId);            choiceset.save();            this.choiceSetMap.put(choicesetId, choiceset);            Element choicesetChoice = choicesetElem.getChild("Choice");            List choices = choicesetElem.getChildren("Choice");            Iterator choicesIter = choices.iterator();            while (choicesIter.hasNext()) {                System.out.println("- - - " + choicesetChoice.getName());                Element choiceElem = (Element) choicesIter.next();                Element choiceValueElem = choiceElem.getChild("Value");                String choiceValue = choiceValueElem.getTextTrim();                System.out.println("- - - - Value = " + choiceValue);                Element choiceLabelElem = choiceElem.getChild("Label");                String choiceLabel = choiceLabelElem.getTextTrim();                System.out.println("- - - - Label = " + choiceLabel);                Element choiceOrderElem = choiceElem.getChild("Order");                String choiceOrder = choiceOrderElem.getTextTrim();                System.out.println("- - - - Order = " + choiceOrder);// never used, so comment it out//                int choiceOrderInt = 0;//                int choiceRankInt = 0;////                try {//                    choiceOrderInt = Integer.parseInt(choiceOrder);//                } catch (NumberFormatException e) {//                    throw new NumberFormatException("ChoiceSet " + choicesetId + ", Choice "//                        + choiceValue + " -- Order \"" + choiceOrder//                        + "\" invalid, must be an integer");//                }                Element choiceRankElem = choiceElem.getChild("Rank");                String choiceRank = choiceRankElem.getTextTrim();                System.out.println("- - - - Rank = " + choiceRank);// never used, so comment it out//                try {//                    choiceRankInt = Integer.parseInt(choiceRank);//                } catch (NumberFormatException e) {//                    throw new NumberFormatException("ChoiceSet " + choicesetId + ", Choice "//                        + choiceValue + " -- Rank \"" + choiceRank//                        + "\" invalid, must be an integer");//                }// never used, so comment it out//                Choice choice = choiceset.addChoice(choiceValue, choiceLabel, choiceOrderInt,//                        choiceRankInt);            }        }    }