class Transformers {

   static Map<String,Object> modelToTraitAttributes(Model m) {
      if(m != null) {
         if(m.supports(ColorTemperatureCapability.NAMESPACE)) {
            return ImmutableMap.of(
               Constants.Attributes.ColorTemperature.TEMPERATURE_MIN_K, ColorTemperatureModel.getMincolortemp(m, Constants.Defaults.COLOR_TEMPERATURE_MIN),
               Constants.Attributes.ColorTemperature.TEMPERATURE_MAX_K, ColorTemperatureModel.getMaxcolortemp(m, Constants.Defaults.COLOR_TEMPERATURE_MAX)
            );
         }
         if(m.supports(ThermostatCapability.NAMESPACE)) {
            return ImmutableMap.of(
               Constants.Attributes.TemperatureSetting.UNIT, "F",
               Constants.Attributes.TemperatureSetting.MODES, StringUtils.join(thermostatSupportedModes(m), ',')
            );
         }
         if(m.supports(SceneCapability.NAMESPACE)) {
            return ImmutableMap.of(Constants.Attributes.Scene.sceneReversible, false);
         }
      }
      return ImmutableMap.of();
   }

   private  Transformers();

}