core/src/main/java/com/orientechnologies/orient/core/db/OrientDB.java
public void create(String database, ODatabaseType type) {
    create(database, type, OrientDBConfig.defaultConfig());
  }
public void create(String database, ODatabaseType type) {
    create(database, type, OrientDBConfig.defaultConfig());
  }
Create a new database

@param database database name
@param type     can be plocal or memory