* @param parent
*/
protected void setCurrentSession(final Session newSession) {
// Store the first wrapped session in the sessionHolder
Session currentSession = Factory.getSession_unchecked();
if (currentSession == newSession) {
// if this is the identical object, do nothing
} else if (currentSession != null) {
lotus.domino.Session rawSession = org.openntf.domino.impl.Base.toLotus(currentSession);
if (org.openntf.domino.impl.Base.isDead(rawSession)) {