@Override
 public void onSuccess(ArrayList<TransitLPActivityUnit> result) {
   if (result != null) {
     transitFetcherCounter = result.size();
     if (transitFetcherCounter == 0) fetcherReady();
     for (TransitLPActivityUnit activityUnit : result) {
       new FetchUnitTransits(activityUnit.getId(), activityUnit.getActivityUnit());
       System.out.println("FetchProjectActivityUnits");
     }
   }
 }
  private List<TransitLPActivityUnit> getActivityUnits() {
    ArrayList<TransitLPActivityUnit> activityUnit = new ArrayList<TransitLPActivityUnit>();
    System.out.println("Size : " + view.getUnitChoices().size());

    for (List<Record> unitRecord : view.getUnitChoices()) {
      TransitLPActivityUnit unit = new TransitLPActivityUnit();
      unit.setCategory(transitCategory.getId());

      for (Record record : unitRecord) {
        System.out.println(
            "CHOICe activity to be added : "
                + ((TransitLPActivity) record.getAttributeAsObject("transit")).getName());
        unit.addActivity(((TransitLPActivity) record.getAttributeAsObject("transit")).getId());
      }

      activityUnit.add(unit);
    }

    return activityUnit;
  }