public MediaProxySession getSession(String sid) {
        MediaProxySession proxySession = sessions.get(sid);
        if (proxySession != null) {
            if (Log.isDebugEnabled()) {
                Log.debug("MediaProxy: SID: " + sid + " agentSID: " + proxySession.getSID());
                return proxySession;
            }
        }
        return null;
    }
Returns a media proxy session with the specified ID.

@param sid the session ID.
@return the session or {@code null} if the session doesn't exist.
xmppserver/src/main/java/org/jivesoftware/openfire/mediaproxy/MediaProxy.java