final String sessionHandler = config.getInitParameter(SESSION_HANDLER);
if (sessionHandler != null) {
final Class<?> clazz = Class.forName(sessionHandler, true, Thread.currentThread().getContextClassLoader());
final Object handler = clazz.newInstance();
if (handler instanceof WebSocketSessionHandler) {
this.callback = new WebSocketSessionConnectionCallback((WebSocketSessionHandler) handler);
} else {
this.callback = (WebSocketConnectionCallback) handler;
}
}
//TODO: set properties based on init params