private MonitoredPointDTO buildMonitoredPointDTO(
      RpcMap properties, Authentication authentication) {
    final MonitoredPointDTO monitoredPoint = new MonitoredPointDTO();

    // Retrieves parameters.
    final Long expectedDate = (Long) properties.get(MonitoredPointDTO.EXPECTED_DATE);
    final String label = (String) properties.get(MonitoredPointDTO.LABEL);

    // Creates point.
    monitoredPoint.setLabel(label);
    monitoredPoint.setExpectedDate(new Date(expectedDate));
    monitoredPoint.setCompletionDate(null);
    monitoredPoint.setDeleted(false);

    final ArrayList<MonitoredPointHistoryDTO> historyList =
        new ArrayList<MonitoredPointHistoryDTO>();
    final MonitoredPointHistoryDTO history = new MonitoredPointHistoryDTO();
    history.setDate(new Date());
    history.setType(ReminderChangeType.CREATED);
    history.setUserId(authentication.getUserId());
    history.setValue(
        authentication.getUserName()
            + ", "
            + authentication.getUserFirstName()
            + " <"
            + authentication.getUserEmail()
            + ">");
    historyList.add(history);

    monitoredPoint.setHistory(historyList);

    return monitoredPoint;
  }
  private Event buildPersonalEvent(RpcMap properties) {
    final Event event = new Event();
    event.fillValues(properties.getTransientMap());

    return event;
  }