docs: public static <T extends GridDialect> T getDelegateOrNull(GridDialect gridDialect, Class<T> delegateType) {
  		if ( gridDialect.getClass() == delegateType ) {
  			return delegateType.cast( gridDialect );
  		}
  		else if ( gridDialect instanceof ForwardingGridDialect ) {
  			return getDelegateOrNull( ( (ForwardingGridDialect<?>) gridDialect ).getGridDialect(), delegateType );
  		}
  		else {
  			return null;
  		}
  	}