private TabletLocator syncLocator() { TabletLocator loc = this.locator; if (!loc.isValid()) synchronized (this) { if (locator == loc) try { loc = locator = getLocatorFunction.call(); } catch (Exception e) { log.error("Problem obtaining TabletLocator", e); throw new RuntimeException(e); } } return loc; }