* @param session the session that created this object
* @param list the persistence managers
* @param sessionList the sessions to access the workspaces
*/
public GarbageCollector(SessionImpl session, IterablePersistenceManager[] list, Session[] sessionList) {
RepositoryImpl rep = (RepositoryImpl) session.getRepository();
store = rep.getDataStore();
this.pmList = list;
this.persistenceManagerScan = list != null;
this.sessionList = sessionList;
// Auto-close if the main session logs out