if ((to == null) || (to.getURI().equals("/") || (to.getContract() == null) || (to.getContract().isUnresolved()))) {
EndpointReference eprTo = provider.getServiceEndpoint();
if (eprTo == null) {
throw new ServiceUnavailableException("Endpoint for service: " + provider.getSCABinding().getURI()
+ " can't be found for component: "
+ provider.getComponent().getName()
+ " reference: "
+ provider.getComponentReference().getName());
}