/* 111 */ throw new IllegalStateException("Cannot obtain endpoint meta data for: " + portName);
/* */ }
/* 113 */ epMetaData.clearHandlers();
/* 114 */ for (HandlerInfo info : infos)
/* */ {
/* 116 */ HandlerMetaDataJAXRPC handler = new HandlerMetaDataJAXRPC(UnifiedHandlerMetaData.HandlerType.ENDPOINT);
/* 117 */ handler.setEndpointMetaData(epMetaData);
/* 118 */ handler.setHandlerClassName(info.getHandlerClass().getName());
/* 119 */ handler.setSoapRoles(roles);
/* */
/* 122 */ Set headers = new HashSet();
/* 123 */ for (QName header : info.getHeaders())
/* 124 */ headers.add(header);
/* 125 */ handler.setSoapHeaders(headers);
/* */
/* 128 */ List initParams = new ArrayList();
/* 129 */ Iterator entries = info.getHandlerConfig().entrySet().iterator();
/* 130 */ while (entries.hasNext())
/* */ {
/* 132 */ Map.Entry entry = (Map.Entry)entries.next();
/* 133 */ String key = (String)entry.getKey();
/* 134 */ Object value = entry.getValue();
/* 135 */ if ((value instanceof String))
/* 136 */ initParams.add(new UnifiedInitParamMetaData(key, (String)value));
/* */ }
/* 138 */ handler.setInitParams(initParams);
/* */
/* 140 */ epMetaData.addHandler(handler);
/* 141 */ log.debug("Add handler to: " + portName + handler);
/* */ }
/* */ }