// mark this session as 'active' so the workspace does not get disposed
// by the workspace-janitor until the garbage collector is done
rep.onSessionCreated(session);
// the workspace could be disposed again, so re-initialize if required
// afterwards it will not be disposed because a session is registered
wspInfo.initialize();
sessions[i] = session;
pm = wspInfo.getPersistenceManager();
pmList.add(pm);
}
IterablePersistenceManager[] ipmList = new IterablePersistenceManager[pmList.size()];