private Passenger(Element elemPassenger, java.util.ArrayList<Company> companies) {
        setName(elemPassenger.attribute("name").getValue());
        setPointsDelivered(Integer.parseInt(elemPassenger.attribute("points-delivered").getValue()));
        Attribute attr = elemPassenger.attribute("lobby");
        if (attr != null) {
            for(Company cpy : companies)
            {
                if(cpy.getName().equalsIgnoreCase(attr.getValue()))
                    setLobby(cpy);
            }
        }
        attr = elemPassenger.attribute("destination");
        if (attr != null) {
            for(Company cpy : companies)
            {
                if(cpy.getName().equalsIgnoreCase(attr.getValue()))
                    setDestination(cpy);
            }
        }
        setRoute(new java.util.ArrayList<Company>());
        for (Object objRoute : elemPassenger.selectNodes("route")) {
            Element elemRoute = (Element)objRoute;
            for(Company cpy : companies)
            {
                if(cpy.getName().equalsIgnoreCase(elemRoute.getText()))
                {
                    getRoute().add(cpy);
                }
            }
        }
        setEnemies(new java.util.ArrayList<Passenger>());
    }