* Hence, a second check is required.
*/
final SharepointClientContext spContext = (SharepointClientContext) sharepointClientContext.clone();
if (null == ws) {
final String webAppURL = Util.getWebApp(key);
WebsHelper webs = null;
try {
spContext.setSiteURL(webAppURL);
webs = new WebsHelper(spContext);
} catch (final Exception e) {
LOGGER.log(Level.WARNING, "webs creation failed for URL [ " + key
+ " ]. ", e);
}
if (null != webs) {
final String tmpKey = webs.getWebURLFromPageURL(key);
if (!key.equals(tmpKey)) {
ws = keyMap.get(tmpKey);
;
}
}