public void selectPerson(PersonDTO personDTO) {
   ProfessionalDTO professionalDTO = (ProfessionalDTO) personDTO;
   professionalLV.clearChoices();
   professionalLV.setItemChecked(professionalAdapter.getPosition(professionalDTO), true);
   professionalLV.setSelection(professionalAdapter.getPosition(professionalDTO));
   rearrangeAvailableDates(professionalDTO);
 }
  private void highlightDailyScheduleList(List<Calendar> freeCalendars) {
    // marca os dias livres e rearruma a lista de profissionais

    if (freeCalendars != null) {
      screenCalendar.clearHighlightedDates();

      professionalAdapter.clearAvailableMarks();
      professionalAdapter.removeMark(professionalLV.getCheckedItemPosition());
      System.out.println(professionalLV.getCheckedItemPosition());
      if (selectedDate != null) {
        // Toast.makeText(getActivity(), selectedProfessionalDTO.getName() + " não está livre no dia
        // selecionado.", Toast.LENGTH_LONG).show();
        clearSelectedDate();
      }
      Collection<Date> freeDatesCollection = new ArrayList<>();
      for (Calendar freeCalendar : freeCalendars) {
        freeDatesCollection.add(DateUtilMoti.convertCalendarToDate(freeCalendar));
      }
      screenCalendar.highlightDates(freeDatesCollection);
      if (freeDatesCollection.size() <= 0)
        Toast.makeText(getContext(), "Profissional sem dias livres", Toast.LENGTH_SHORT).show();
    }
    finishUpViewLoad();
  }
  private void highlightProfessionalDTOList(
      Set<ProfessionalDTO> availableProfessionalDTOs,
      Set<ProfessionalDTO> unavailableProfessionalsSet) {
    // limpa os dias marcados e profissional selecionado para mostrar profissionais disponiveis na
    // data selecionada

    for (ProfessionalDTO professionalDTO : availableProfessionalDTOs) {
      System.out.println("Nome: " + professionalDTO.getName());
    }
    if (selectedProfessionalDTO != null) {
      // Toast.makeText(getActivity(), selectedProfessionalDTO.getName() + " não está livre no dia
      // selecionado.", Toast.LENGTH_LONG).show();
      professionalLV.clearChoices();
      selectedProfessionalDTO = null;
    }
    professionalAdapter.highlightProfessionals(
        availableProfessionalDTOs, unavailableProfessionalsSet);
    if (selectedProfFreeCalendars != null) selectedProfFreeCalendars.clear();
    screenCalendar.clearHighlightedDates();
    finishDownViewLoad();
  }