code: public static DB newEmbeddedDB(DBConfiguration config) throws ManagedProcessException {
          DB db = new DB(config);
          db.prepareDirectories();
          db.unpackEmbeddedDb();
          db.install();
          return db;
      }
docs: This factory method is the mechanism for constructing a new embedded database for use. This
  method automatically installs the database and prepares it for use.
  
  @param config Configuration of the embedded instance
  @return a new DB instance
  @throws ManagedProcessException if something fatal went wrong