public static String mapSiteToServer(SessionID sid) throws URLNotFoundException {
  URL mapSessionServiceUrl=mapSiteToServer(sid.getSessionServerProtocol(),sid.getSessionServer(),sid.getSessionServerPort(),sid.getSessionServerURI());
  if (mapSessionServiceUrl == null) {
    return sid.getSessionServerURL();
  }
  return mapSessionServiceUrl.toString();
}

public static String mapSiteToServer ( SessionID sid ) throws URLNotFoundException { URL mapSessionServiceUrl = mapSiteToServer ( sid . getSessionServerProtocol ( ) , sid . getSessionServer ( ) , sid . getSessionServerPort ( ) , sid . getSessionServerURI ( ) ) ; if ( mapSessionServiceUrl == null ) { return sid . getSessionServerURL ( ) ; } return mapSessionServiceUrl . toString ( ) ; }
return the mapped server url if there is a site . otherwise , return the server url from the session .
