import com.mongodb.Mongo;
public class PureMorphiaApp {
private static Datastore getDatastore() throws Exception {
Morphia morphia = new Morphia();
PureMorphiaUser.ensureMapped(morphia);
Mongo mongo = new Mongo();
return morphia.createDatastore(mongo, "mydatabase");
}