}
}
if ( injector == null ) {
log.gridDialectHasNoProperConstructor( clazz );
}
GridDialect gridDialect = (GridDialect) injector.newInstance( datastore );
if ( gridDialect instanceof BatchableGridDialect ) {
BatchableGridDialect batchable = (BatchableGridDialect) gridDialect;
gridDialect = new BatchOperationsDelegator( batchable );
}
log.useGridDialect( gridDialect.getClass().getName() );
if ( GridDialectLogger.activationNeeded() ) {
gridDialect = new GridDialectLogger( gridDialect );
log.info( "Grid dialect logs are active" );
}
else {