throw new NullPointerException("SipSession is null");
if (!session.isValid())
throw new IllegalArgumentException("SipSession " + session + " is not valid");
Session linked = ((SessionIf) session).getSession().getLinkedSession();
return linked == null ? null : new ScopedSession(linked);
}