class Transformers {

   static Optional<GoogleDeviceName> modelToDeviceName(Model m) {
      if(m == null) {
         return Optional.empty();
      }

      if(m.supports(DeviceCapability.NAMESPACE)) {
         return createDeviceName(DeviceModel.getName(m));
      }

      if(m.supports(SceneCapability.NAMESPACE)) {
         return createDeviceName(SceneModel.getName(m));
      }

      return Optional.empty();
   }

   private  Transformers();

}