     "Returns nil if no tag is specified in the record definition, and no :key
      metadata exists. Otherwise returns a Key object. Specify optional entity
      group parent.")
+  (get-entity-object [this]
+    "Returns a datastore Entity object instance for the record.")
   (save! [this]
     "Writes the given entity to the data store."))
 

    (doseq [[property-kw value] entity-record]
      (let [property-name (.substring (str property-kw) 1)]
        (.setProperty entity property-name (coerce-clojure-type value))))
    (.put (get-datastore-service) entity)))


(defn retrieve [entity-record-type key-value &

                   "entity has no valid :key metadata, and has no fields marked :key")))))


(defn get-entity-object-helper [entity-record kind]
  (let [key-object (get-key-object entity-record)
        entity (if key-object
                   (Entity. key-object)
