public static String toJson(KineticDevice device) {
   return MessageUtil.toJson(device);
 }
 public static KineticDevice fromJson(String json) {
   return (KineticDevice) MessageUtil.fromJson(json, KineticDevice.class);
 }