public Row findActivityBySrNumber(String incidentNumber) {
    XxntcCsCalendarActivitiesEOVOImpl searchVo = getXxntcCsCalendarActivitiesEOVOSearch();
    searchVo.setApplyViewCriteriaName("GetSrNumberCriteria");
    VariableValueManager vvm = searchVo.ensureVariableManager();
    vvm.setVariableValue("pIncidentNumber", incidentNumber);
    vvm.setVariableValue("pResourceId", getResourceId());
    searchVo.executeQuery();
    if (searchVo.getRowCount() == 0) return null;

    return searchVo.first();
  }
  private Row getFirstDateForPlate(String plate) {
    Map<String, Object> resultMap = new HashMap<String, Object>();
    XxntcCsCalendarActivitiesEOVOImpl searchVo = getXxntcCsCalendarActivitiesEOVOSearch();
    searchVo.setApplyViewCriteriaName("GetDateCriteria");
    VariableValueManager vvm = searchVo.ensureVariableManager();
    vvm.setVariableValue("pTitle", plate);
    vvm.setVariableValue("pResourceId", getResourceId());
    searchVo.executeQuery();
    if (searchVo.getRowCount() == 0) return null;

    RowSetIterator iterator = searchVo.createRowSetIterator(null);
    iterator.reset();
    List<Row> rows = new ArrayList<Row>();
    while (iterator.hasNext()) {
      Row row = iterator.next();
      rows.add(row);
    }
    iterator.closeRowSetIterator();
    return getMaxStartTimeActRow(rows);
  }