class Transformers {

   static Optional<String> devTypeHintToGoogleType(String devTypeHint) {
      if(StringUtils.isBlank(devTypeHint)) {
         return Optional.empty();
      }
      String type;
      switch(devTypeHint) {
         case Constants.DeviceTypeHint.DIMMER:
         case Constants.DeviceTypeHint.LIGHT:
            type = Constants.Type.LIGHT; break;
         case Constants.DeviceTypeHint.SWITCH:
            type = Constants.Type.SWITCH; break;
         case Constants.DeviceTypeHint.THERMOSTAT:
            type = Constants.Type.THERMOSTAT; break;
         default: type = null; break;
      }
      return Optional.ofNullable(type);
   }

   private  Transformers();

}