thePlan_.addOrgActivity(oa);
theOrgActivities_.add(oa);
  public void setOrgActivity(Node data, NamedNodeMap attributes)   {    OrgActivity oa = new OrgActivity(orgID, oplanUID);    uids.registerUniqueObject(oa);    oa.setOwner(cid);    /* orgactivity.OpTempo:       orgactivity.activityType:       orgactivity.activityName:*/             /*      if( attributes.getNamedItem(TAALOC) != null)            oa.setTAALoc(attributes.getNamedItem(TAALOC).getNodeValue());            if( attributes.getNamedItem(TAAEAD) != null)            oa.setTAAEAD(attributes.getNamedItem(TAAEAD).getNodeValue());            if( attributes.getNamedItem(TAALAD) != null)            oa.setTAALAD(attributes.getNamedItem(TAALAD).getNodeValue()); */		         if( attributes.getNamedItem(ACTIVITYTYPE) != null)      oa.setActivityType(attributes.getNamedItem(ACTIVITYTYPE).getNodeValue());    if( attributes.getNamedItem(ACTIVITYNAME) != null)      oa.setActivityName(attributes.getNamedItem(ACTIVITYNAME).getNodeValue());    if( attributes.getNamedItem(OPTEMPO) != null)      oa.setOpTempo(attributes.getNamedItem(OPTEMPO).getNodeValue());    //	  if( attributes.getNamedItem("OpActivity") != null)    //         ts.setOpActivity(attributes.getNamedItem("OpActivity").getNodeValue());	     		     addGeoLocs(oa, data);    // DTD Requirements (keyvalue*,timespan?)>	     NodeList subNodes = ((Element)data).getChildNodes();    if (subNodes != null)      {        int len = subNodes.getLength();        for ( int i = 0; i < len; i++ )          {            String nodeName = subNodes.item(i).getNodeName();				// Create a has table for OrgActivity stuff            if( nodeName.equals(KEYVALUE) )               {                NamedNodeMap subattributes = subNodes.item(i).getAttributes();                if ( ( subattributes.getNamedItem(KEY) != null) &&                     ( subattributes.getNamedItem(VALUE) != null))                  oa.addActivityItem(subattributes.getNamedItem(KEY).getNodeValue(),                                     subattributes.getNamedItem(VALUE).getNodeValue());                }// if statement				// if Timespan            if (nodeName.equals(TIMESPAN))              setTimeSpan(oa, subNodes.item(i));          }// for loop			      }// if statement		 		 		     thePlan_.addOrgActivity(oa);  }//setOrgActivity