List<SourceType> stList = route.getSource();
List<Source> metadata = createMetadata();
for (SourceType st : stList) {
//TODO Config For Pass Through
Port p = sourcePortMap.get(st.getService());
WsdlPortProvider portProvider = new WsdlPortProvider(p);
String srcBindingId = (String) portProvider.getObject("bindingId");
Object implementor = null;
if (isSameBindingId(srcBindingId)) {
//Pass Through Mode
implementor = new StreamSourceMessageProvider(wsdlModel, route);
} else {
//CodeGenerated Servant
InvocationHandler implHandler = new SEIImplHandler(wsdlModel, route);
implementor = createSEIImplementor(p.getBinding().getPortType(), implHandler);
}
Endpoint sourceEP = Endpoint.create(srcBindingId, implementor);
Map<String, Object> properties =
createEndpointProperties(st.getService(), p.getName());
sourceEP.setMetadata(metadata);
sourceEP.setProperties(properties);
//TODO Set Executor on endpoint.
epList.add(sourceEP);
}