class Transformers {

   static Map<String, Object> modelToCustomData(Model m) {
      ImmutableMap.Builder<String, Object> builder = ImmutableMap.builder();
      if(m.supports(DeviceCapability.NAMESPACE)) {
         String val = DeviceModel.getProductId(m);
         if(!StringUtils.isBlank(val))  builder.put(PRODUCT_ID, val);
         val = DeviceModel.getDevtypehint(m);
         if(!StringUtils.isBlank(val))  builder.put(TYPE_HINT, val);
      } else if (m.supports(SceneCapability.NAMESPACE)) {
         builder.put(TYPE_HINT, SceneCapability.NAMESPACE);
      }
      return builder.build();
   }

   private  Transformers();

}