private void setHandler(javax.xml.ws.spi.http.HttpContext context) {
context.setHandler(new PortableHttpHandler(adapter, executor));
}
public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element...referenceParameters) {
WSEndpointImpl endpointImpl = (WSEndpointImpl) adapter.getEndpoint();
String eprAddress = getEPRAddress();
return clazz.cast(endpointImpl.getEndpointReference(clazz, eprAddress,eprAddress+"?wsdl", referenceParameters));
}