// TODO: documented because it's used by AS
public T createAdapter(String name, String urlPattern, WSEndpoint<?> endpoint) {
T t = createHttpAdapter(name, urlPattern, endpoint);
adapters.add(t);
WSDLPort port = endpoint.getPort();
if (port != null) {
PortInfo portInfo = new PortInfo(port.getOwner().getName(),port.getName().getLocalPart());
addressMap.put(portInfo, getValidPath(urlPattern));
}
return t;
}