public synchronized void unregisterSession(String name, boolean broadcastName) {
        net.unregisterSession(name, this, broadcastName);
        sessions.remove(name);
    }
<p>This method is invoked by the {@link
com.yahoo.messagebus.IntermediateSession#destroy()} to unregister
sessions from receiving data from message bus.</p>

@param name          The name of the session to remove.
@param broadcastName Whether session name was broadcast.
messagebus/src/main/java/com/yahoo/messagebus/MessageBus.java