Set<QName> headers = ((MessageHandler<?>) handler).getHeaders();
if (headers != null) {
handlerKnownHeaders.addAll(headers);
}
}else {
throw new HandlerException("handler.not.valid.type",
handler.getClass());
}
}
return new HandlerConfiguration(roles,portKnownHeaders,handlerChain,
logicalHandlers,soapHandlers,messageHandlers,handlerKnownHeaders);