for (String name : req.headers().names()) {
List<String> values = req.headers().getAll(name);
headers.put(name, values);
}
HandshakeData data = new HandshakeData(headers, params,
(InetSocketAddress)channel.remoteAddress(),
req.getUri(), origin != null && !origin.equalsIgnoreCase("null"));
boolean result = configuration.getAuthorizationListener().isAuthorized(data);
if (result) {