@Override
  public void endElement(String namespaceURI, String localName, String qName) throws SAXException {

    String v = sb.toString();
    if (qName.length() == 0)
      qName = localName;

    if (qName.equals("common")) {

      currentStop.setName(v);

    } else if (qName.equals("atco")) {

      currentStop.setAtcoCode(v);

    } else if (qName.equals("naptan")) {

      currentStop.setNaptanCode(v);

    } else if (qName.equals("lat")) {

      currentStop.setLatitude(Double.parseDouble(v));

    } else if (qName.equals("long")) {

      currentStop.setLongitude(Double.parseDouble(v));

    } else if (qName.equals("stop")) {

      busStops.add(currentStop);

    } else if (qName.equals("error")) {

      throw new SAXException(v);

    }

  }