Oplan plan = PSPOplanUtilities.getOplan(psc); Enumeration org_activities = plan.getOrgActivities(); while(org_activities.hasMoreElements() ) { OrgActivity org = (OrgActivity)org_activities.nextElement(); if(org.getOrgID().equals(orgID) && org.getActivityType().equals(activityType))
Collection orgActivities = PSPOplanUtilities.getOrgActivities(psc, orgID ); for (Iterator iterator = orgActivities.iterator(); iterator.hasNext();) { OrgActivity org = (OrgActivity)iterator.next(); if (org.getActivityType().equals(activityType))
  private OrgActivity getOrgActivityWith(String orgID,String activityType,PlanServiceContext psc)  {    Oplan plan = PSPOplanUtilities.getOplan(psc);    Enumeration org_activities = plan.getOrgActivities();    while(org_activities.hasMoreElements() )    {      OrgActivity org = (OrgActivity)org_activities.nextElement();      if(org.getOrgID().equals(orgID) && org.getActivityType().equals(activityType))        return org;    }    return null;  }