class WebSocketMessageRouters {

    public synchronized void registerProcessor(final String endpointId, final Processor processor) throws WebSocketConfigurationException {
        final WebSocketMessageRouter router = getRouterOrCreate(endpointId);
        router.registerProcessor(processor);
    }

}