@ SuppressWarnings ( "unchecked" ) public < T > T load ( final BaseEntity < com . google . cloud . datastore . Key > ent , final LoadContext ctx ) { if ( ent == null ) return null ; final EntityMetadata < T > meta = ofy . factory ( ) . getMetadata ( ent . getKey ( ) . getKind ( ) ) ; if ( meta == null ) return ( T ) ent ; else return meta . load ( ent , ctx ) ; }
Converts a datastore entity into a typed pojo object