try {
processor = framework.newClassInstance(WebSocketProcessor.class,
(Class<WebSocketProcessor>) IOUtils.loadClass(getClass(), webSocketProcessorName));
} catch (Exception ex) {
logger.error("Unable to create {}", webSocketProcessorName);
processor = new DefaultWebSocketProcessor();
}
}
if (processor == null) {
processor = new DefaultWebSocketProcessor();
}
processor.configure(framework.getAtmosphereConfig());
return processor;
}