public void checkIfLoaded() {
Throwable throwable = null;
final RecordStoreLoader recordStoreLoader = this.recordStoreLoader;
final Throwable exception = recordStoreLoader.getExceptionOrNull();
if (exception == null && !recordStoreLoader.isLoaded()) {
throwable = new RetryableHazelcastException("Map is not ready!!!");
} else if (exception != null) {
throwable = exception;
}
if (throwable != null) {
throw ExceptionUtil.rethrow(throwable);