@@ -0,0 +1,1060 @@
+package com.rptools.util;%0A%0Aimport java.io.Serializable;%0A%0Aimport com.google.appengine.api.datastore.Entity;%0Aimport com.google.appengine.api.users.User;%0Aimport com.google.gson.Gson;%0A%0Apublic class RPEntity%3CT%3E implements Serializable %7B%0A    public static final Gson gson = new Gson();%0A    public Long key = -1L;%0A    public transient User user;%0A%0A    public RPEntity() %7B%0A    %7D%0A%0A    public static %3CT extends RPEntity%3E T fromEntity(Entity entity, Class%3CT%3E clazz) %7B%0A        T t = gson.fromJson((String) entity.getProperty(%22content%22), clazz);%0A        t.key = entity.getKey().getId();%0A        return t;%0A    %7D%0A%0A    public Entity entity() %7B%0A        Entity entity;%0A        if (key %3E 0) %7B%0A            entity = new Entity(getType(), key);%0A        %7D else %7B%0A            entity = new Entity(getType());%0A        %7D%0A        entity.setProperty(%22content%22, toString());%0A        entity.setProperty(%22user%22, user);%0A        return entity;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return gson.toJson(this);%0A    %7D%0A%0A    public String getType() %7B%0A        return null;%0A    %7D%0A%7D

Add RPEntity class