} else {
databinding = new AegisDatabinding();
}
String frontEndImpl = (String)exportRegistration.getExportedService()
.getProperty(Constants.WS_FRONTEND_PROP_KEY);
ServerFactoryBean factory = createServerFactoryBean(frontEndImpl);
factory.setServiceClass(iClass);
factory.setAddress(address);
factory.getServiceFactory().setDataBinding(databinding);
factory.setServiceBean(serviceBean);
ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
try {
String[] intents = applyIntents(dswContext, callingContext, factory.getFeatures(), factory, sd);
// The properties for the EndpointDescription
Map<String, Object> endpointProps = createEndpointProps(sd, iClass, new String[]{Constants.WS_CONFIG_TYPE}, address,intents);
Thread.currentThread().setContextClassLoader(ServerFactoryBean.class.getClassLoader());
Server server = factory.create();
exportRegistration.setServer(server);
// add the information on the new Endpoint to the export registration
EndpointDescription ed = new EndpointDescription(endpointProps);