@Override
public Binding handleUnknownEndpoint(EndpointReference endpointReference) {
if (endpointReference.getTargetEndpoint().getURI().endsWith("Service1")) {
SCABinding b = new SCABindingFactoryImpl().createSCABinding();
b.setURI("http://localhost:8085/Service1/Helloworld");
return b;
} else if (endpointReference.getTargetEndpoint().getURI().endsWith("Service2")) {
SCABinding b = new SCABindingFactoryImpl().createSCABinding();
b.setURI("http://localhost:8085/Service2/Helloworld");
return b;
}
return null;