ComponentContext componentContext = endpoint.getServiceUnit().getComponent().getComponentContext();
String key = se.getServiceName() + se.getEndpointName();
synchronized (definitions) {
definition = (Definition) definitions.get(key);
if (definition == null) {
WSDLFactory factory = WSDLFactory.newInstance();
Document description = componentContext.getEndpointDescriptor(se);
if (description != null) {
// Parse WSDL
WSDLReader reader = factory.newWSDLReader();
reader.setFeature(Constants.FEATURE_VERBOSE, false);
try {
definition = reader.readWSDL(null, description);
definitions.put(key, definition);
} catch (WSDLException e) {