private RealmConfiguration(Builder builder) { this.realmFolder = builder.folder; this.realmFileName = builder.fileName; this.canonicalPath = Realm.getCanonicalPath(new File(realmFolder, realmFileName)); this.key = builder.key; this.schemaVersion = builder.schemaVersion; this.deleteRealmIfMigrationNeeded = builder.deleteRealmIfMigrationNeeded; this.migration = builder.migration; this.durability = builder.durability; this.schemaMediator = createSchemaMediator(builder); }