}
Boolean isOpening = this.regionsInTransitionInRS.get(Bytes.toBytes(encodedRegionName));
String regionNameStr = regionName == null?
encodedRegionName: Bytes.toStringBinary(regionName);
if (isOpening != null && isOpening.booleanValue()) {
throw new RegionOpeningException("Region " + regionNameStr +
" is opening on " + this.serverNameFromMasterPOV);
}
throw new NotServingRegionException("Region " + regionNameStr +
" is not online on " + this.serverNameFromMasterPOV);
}