@Override
  public FireAlarmDataStoreConfigurations marshal(
      Map<String, DeviceDataStoreConfig> fireAlarmDataStoreConfigMap) throws Exception {

    FireAlarmDataStoreConfigurations fireAlarmDataStoreConfigurations =
        new FireAlarmDataStoreConfigurations();

    fireAlarmDataStoreConfigurations.setIotDataSourceConfigs(
        (List<DeviceDataStoreConfig>) fireAlarmDataStoreConfigMap.values());

    return fireAlarmDataStoreConfigurations;
  }
  @Override
  public Map<String, DeviceDataStoreConfig> unmarshal(
      FireAlarmDataStoreConfigurations fireAlarmDataStoreConfigurations) throws Exception {

    Map<String, DeviceDataStoreConfig> fireAlarmDataStoreConfigMap =
        new HashMap<String, DeviceDataStoreConfig>();

    for (DeviceDataStoreConfig iotDataSourceConfig :
        fireAlarmDataStoreConfigurations.getIotDataSourceConfigs()) {
      fireAlarmDataStoreConfigMap.put(iotDataSourceConfig.getType(), iotDataSourceConfig);
    }

    return fireAlarmDataStoreConfigMap;
  }