final String dbUrl = Play.configuration.getProperty("db.url");
if((db==null || db=="" ) && (dbUrl == null || dbUrl == "")){
throw new UnexpectedException("SienaPlugin : not using GAE requires at least a db config");
}
if(dbType.contains("postgresql")){
persistenceManager = new PostgresqlPersistenceManager(new PlayConnectionManager(), null);
ddlType = "postgresql";
generator = new DdlGenerator("postgresql");
}else if(dbType.contains("h2")){
// the H2 dbMode in Play is "mysql"
persistenceManager = new H2PersistenceManager(new PlayConnectionManager(), null, "mysql");