/**
* INTERNAL:
* Builds a session broker from the given SessionBrokerConfig.
*/
protected SessionBroker buildSessionBrokerConfig(SessionBrokerConfig sessionBrokerConfig) {
SessionBroker sessionBroker = new SessionBroker();
// Session names
Enumeration sessionNames = sessionBrokerConfig.getSessionNames().elements();
while (sessionNames.hasMoreElements()) {
// Register the sessions
String sessionName = (String)sessionNames.nextElement();
sessionBroker.registerSession(sessionName, (AbstractSession)m_sessions.get(sessionName));
}
// Process the common elements in SessionConfig
processSessionConfig(sessionBrokerConfig, sessionBroker);