package org.example.bootstrap;

import com.avaje.ebean.config.TenantSchemaProvider;

class SchemaProvider implements TenantSchemaProvider {

  @Override
  public String schema(String tenantId) {
    return (tenantId == null) ? "public" : tenantId;
  }

}

@@ -196,14 +196,10 @@
     
-return
+if
  (te
@@ -218,20 +218,92 @@
 ll) 
-? %22public%22 :
+%7B%0A      throw new RuntimeException(%22No current tenantId supplied%22);%0A    %7D%0A    return
  ten

Change SchemaProvider to barf if no current tenantId is passed