code: public static TaskEntity getTaskEntity(List<TaskSummary> tasks, int taskId) {
          TaskEntity entity = null;
          for (TaskSummary task : tasks) {
              if (task.get_taskId() == taskId) {
                  entity = new TaskEntity(task);
                  break;
              }
          }
          return entity;
      }
docs: get the specific task entity
  @param tasks list of task summaries
  @param taskId task id
  @return