NewGeolocLocation geoLoc = null;
GeolocLocationImpl geoLoc = null;
  public void setGeoLoc(Object obj, Node node)  {    Latitude lat = null;    Longitude lon = null;    String name = null;    NamedNodeMap subattributes = node.getAttributes();            try {      // Create a newGeolocLocation      NewGeolocLocation geoLoc = null;      // get the geoLoc Code from the XML      Node gcn = subattributes.getNamedItem(GEOLOCCODE);      String geoLocCode = null;      if (gcn != null && (geoLocCode=gcn.getNodeValue()) != null) {        geoLocCode = geoLocCode.intern();        geoLoc = (NewGeolocLocation) geolocCache.get(geoLocCode);      }      if (geoLoc == null) {        if (geoLocCode == null) geoLocCode = new String("");        geoLoc = new GeolocLocationImpl();        // Set the value in NewGeoLocation accordingly.        geoLoc.setGeolocCode(geoLocCode);        // Get the GeoLoc Name from the XML        String geoLocName;        if (subattributes.getNamedItem(GEOLOCNAME) == null)          geoLocName = "";          else          geoLocName = subattributes.getNamedItem(GEOLOCNAME).getNodeValue();	             // Set the value in NewGeoLocation accordingly.        geoLoc.setName(geoLocName);        // get the Latitude and Longitude values.        if (( subattributes.getNamedItem(GEOLOCLAT)!= null) &&            ( subattributes.getNamedItem(GEOLOCLONG) != null))	          {            lat = Latitude.newLatitude(subattributes.getNamedItem(GEOLOCLAT).getNodeValue());            lon = Longitude.newLongitude(subattributes.getNamedItem(GEOLOCLONG).getNodeValue());                          geoLoc.setLatitude(lat);            geoLoc.setLongitude(lon);          }// if the latitude long        // cache the instance        geolocCache.put(geoLocCode, geoLoc);      }      if ( geoLoc != null) {           if (obj instanceof DFSP) ((DFSP)obj).setGeoLoc(geoLoc);	   	         if (obj instanceof OrgActivity) ((OrgActivity)obj).setGeoLoc(geoLoc);	          } else {        System.err.println("OplanFileReader:setGeoLoc - geoloc not specifed correctly in xml file.");      }    } catch (Exception e) {      System.err.println("OplanFileReader Got exception: " + e);      e.printStackTrace();      //System.exit(-1);    }  }