@Override
            public void endElement(String uri, String localName,
                                   String qName) throws SAXException{
                switch (qName){
                    case "plane":
                        planes.add(plane);
                        break;
                    case "model":
                        plane.setModel(Model.getModel(content));
                        break;
                    case "origin":
                        plane.setOrigin(Country.getCountry(content));
                        break;
                    case "type":
                        plane.setType(PlaneType.getType(content));
                        break;
                    case "crew":
                        plane.setCrew(Integer.parseInt(content));
                        break;
                    case "length":
                        plane.getParameters().setLength(Double.parseDouble(content));
                        break;
                    case "wingspan":
                        plane.getParameters().setWingspan(Double.parseDouble(content));
                        break;
                    case "weight":
                        plane.getParameters().setWeight(Double.parseDouble(content));
                        break;
                    case "price":
                        plane.setPrice(Double.parseDouble(content));
                        break;
                }
            }