public class PlayDevEnvironment implements Environment, LocalServerEnvironment {
public static PlayDevEnvironment create() {
PlayDevEnvironment instance = new PlayDevEnvironment();
ApiProxyLocalFactory factory = new ApiProxyLocalFactory();
ApiProxyLocal proxy = factory.create(instance);
proxy.setProperty(
LocalDatastoreService.BACKING_STORE_PROPERTY,
Play.getFile("tmp/datastore").getAbsolutePath());
ApiProxy.setDelegate(proxy);
return instance;