public boolean accepts(Serializable message) {
return message instanceof SessionMessage;
}
public void onProcessMessage(Serializable message, Member sender) {
SessionMessage sessionMessage = (SessionMessage) message;
SessionProvider provider = contextPathToSessionProvider
.get(sessionMessage.getContextPath());
if (provider == null) {
log.error("Couldn't find session provider for context "
+ sessionMessage.getContextPath());
} else {
sessionMessage.execute(provider);
}
}