public NotificationDTO createNotificationDTO(DetailInputDTO detailInputDTO, String action) {

    NotificationDTO notificationDTO = null;

    notificationDTO = new NotificationDTO();
    notificationDTO.setAction(action);
    notificationDTO.setTrasactionId(detailInputDTO.getTransactionId());
    notificationDTO.setEntityId(String.valueOf(detailInputDTO.getId()));
    notificationDTO.setCount(1);

    return notificationDTO;
  }
  public NotificationDTO createNotificationDTO(
      SearchInputDTO searchInputDTO, SearchResultDTO searchResultDTO, String action) {

    NotificationDTO notificationDTO = null;

    notificationDTO = new NotificationDTO();
    notificationDTO.setAction(action);
    notificationDTO.setTrasactionId(searchInputDTO.getTransactionId());
    notificationDTO.setSearchInputDTO(searchInputDTO);
    notificationDTO.setSearchResultDTO(searchResultDTO);
    notificationDTO.setCount(1);

    return notificationDTO;
  }