in method org.hibernate.internal.SessionFactoryImpl#determineCustomEntityDirtinessStrategy, if the property value is a Class, then the code was :
if ( Class.class.isInstance( value ) ) { customEntityDirtinessStrategyClass = Class.class.cast( customEntityDirtinessStrategy ); }
but customEntityDirtinessStrategy is null atm, so the customEntityDirtinessStrategyClass is null
same bug exists in org.hibernate.internal.SessionFactoryImpl#determineCurrentTenantIdentifierResolver