protected SnmpVersion getSnmpVersion(Map<String, String> dispatchProperties) throws InvalidSnmpConfigurationException {
    String snmpVersion = getDispatchProperty(dispatchProperties, SNMP_VERSION_PROPERTY);
    try {
      return SnmpVersion.valueOf(snmpVersion);
    } catch (IllegalArgumentException ex) {
      String errorMessage = String.format("Incorrect SNMP version - \"%s\". Possible values for \"%s\": %s",
          snmpVersion, SNMP_VERSION_PROPERTY, Arrays.toString(SnmpVersion.values()));
      throw new InvalidSnmpConfigurationException(errorMessage);
    }
  }
Returns {@link SnmpVersion} instance corresponding to dispatch property <code>ambari.dispatch.snmp.version</code> from dispatch properties.
@param dispatchProperties dispatch properties
@return corresponding SnmpVersion instance
@throws InvalidSnmpConfigurationException if dispatch properties doesn't contain required property
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/SNMPDispatcher.java