if (sess == null) {
return;
}
// Lock SAS if one is being referenced
ConvergedHttpSessionFacade chs = (ConvergedHttpSessionFacade)
createSessionFacade((StandardSession) sess);
if (chs != null) {
SipApplicationSessionImpl sas = (SipApplicationSessionImpl)
chs.getApplicationSession(false);
if (sas != null) {
ReplicationUnitOfWork uow =
ReplicationUnitOfWork.getThreadLocalUnitOfWork();
if (uow != null) {
uow.lockApplicationSession(sas);