public static String inferOdmlType(Object value) {
      if (value instanceof Integer) {
         return "int";
      } else if (value instanceof Boolean) {
         return "boolean";
      } else if (value instanceof Date) {
         return "datetime";
      } else if (value instanceof Float) {
         return "float";
      } else if (value instanceof Double) {
         return "float";
      } else if (value instanceof URL) {
         return "url";
      } else if (value instanceof File) {
         return "binary";
      } else if (value instanceof Date) {
         return "date";
      } else if (value instanceof String) {
         return inferDatatypeFromString(value.toString());
      }
      return "string";
   }