HashMap sessionIds = new HashMap();
for (int i=0; i < entries.length; i++) {
try {
if (entries[i] instanceof SessionEntry) {
// do connect
SessionEntry entry = (SessionEntry)entries[i];
ConnectQosData data = this.global.getConnectQosFactory().readObject(entry.getQos());
this.addressServer = new AddressServer(this.global, "NATIVE", this.global.getId(), (java.util.Properties)null);
ConnectQosServer qos = new ConnectQosServer(this.global, data);
qos.isFromPersistenceRecovery(true);
qos.setPersistenceUniqueId(entry.getUniqueId());
qos.setAddressServer(this.addressServer);
SessionName sessionName = data.getSessionName();
String sessionId = data.getSessionQos().getSecretSessionId();
sessionIds.put(sessionName.getAbsoluteName(), sessionId);
if (log.isLoggable(Level.FINE))
log.fine("recoverSessions: store in map session='" + sessionName.getAbsoluteName() + "' has secret sessionId='" + sessionId + "' and persistenceUniqueId=" + entry.getUniqueId());
// if (log.isLoggable(Level.FINE)) log.trace(ME, "recoverSessions: session: '" + data.getSessionName() + "' secretSessionId='" + qos.getSessionQos().getSecretSessionId() + "' qos='" + qos.toXml() + "'");
ConnectReturnQosServer ret = this.global.getAuthenticate().connect(qos);
if (log.isLoggable(Level.FINEST))
log.finest("recoverSessions: return of connect: returnConnectQos='" + ret.toXml() + "'");
}