private static AbstractSEIModelImpl createSEIModel(WSDLPort wsdlPort,
Class<?> implType, @NotNull QName serviceName, @NotNull QName portName, WSBinding binding) {
RuntimeModeler rap;
// Create runtime model for non Provider endpoints
// wsdlPort will be null, means we will generate WSDL. Hence no need to apply
// bindings or need to look in the WSDL
if(wsdlPort == null){
rap = new RuntimeModeler(implType,serviceName, binding.getBindingId(), binding.getFeatures().toArray());
} else {
/*
This not needed anymore as wsdlFeatures are merged later anyway
and so is the MTOMFeature.
applyEffectiveMtomSetting(wsdlPort.getBinding(), binding);
*/
//now we got the Binding so lets build the model
rap = new RuntimeModeler(implType, serviceName, (WSDLPortImpl)wsdlPort, binding.getFeatures().toArray());
}
rap.setClassLoader(implType.getClassLoader());
rap.setPortName(portName);
return rap.buildRuntimeModel();
}