code: public Activity getActivityVO(Long pWorkId) {
           if(this.activities == null){
              return null;
          }
          for(int i=0; i<activities.size(); i++){
              if(pWorkId.longValue() == activities.get(i).getId().longValue()){
                  return activities.get(i);
              }
          }
          return null;
  
      }
docs: Returns the Activity VO
  @param pWorkId
  @returb ActivityVO