// lets construct a resolver if any of the output
if (destinationService != null) {
if (destinationEndpoint != null) {
return new ServiceAndEndpointNameResolver(destinationService, destinationEndpoint);
} else {
return new ServiceNameEndpointResolver(destinationService);
}
} else if (destinationInterface != null) {
return new InterfaceNameEndpointResolver(destinationInterface);
} else if (destinationUri != null) {
return new URIResolver(destinationUri);