code: private static EventTopic getEventTypeForTarget(final ActionProperties action) {
          return (Action.ActionType.DOWNLOAD_ONLY.equals(action.getActionType()) ||
                  !action.isMaintenanceWindowAvailable()) ? EventTopic.DOWNLOAD : EventTopic.DOWNLOAD_AND_INSTALL;
      }
docs: Method to get the type of event depending on whether the action is a
  DOWNLOAD_ONLY action or if it has a valid maintenance window available
  or not based on defined maintenance schedule. In case of no maintenance
  schedule or if there is a valid window available, the topic {@link EventTopic#DOWNLOAD_AND_INSTALL} is
  returned else {@link EventTopic#DOWNLOAD} is returned.
  
  @param action
  current action properties.
  
  @return {@link EventTopic} to use for message.