class DynamicSessionIDExtensions implements SessionIDExtensions {

    @Override
    public String getSiteID() {
        SessionIDCorrector corrector = query.getSessionIDCorrector();
        if (corrector == null) { // WebtopNaming not yet configured.
            return delegate.getSiteID();
        }
        return corrector.translateSiteID(delegate.getPrimaryID(), delegate.getSiteID());
    }

    @VisibleForTesting  DynamicSessionIDExtensions(WebtopNamingQuery query, SessionIDExtensions delegate);
    public  DynamicSessionIDExtensions(SessionIDExtensions delegate);

}