}
public <T> T createProxy(final Class<T> targetClass, final Key<T> key,
final DatastoreProvider p) {
SerializableEntityObjectReference objectReference = new SerializableEntityObjectReference(
targetClass, p, key);
T backend = (T) new NonFinalizingHotSwappingInvoker(new Class[]{targetClass,
Serializable.class}, factory,
objectReference, DelegationMode.SIGNATURE).proxy();