public boolean isTargetRemote() {
boolean targetIsRemote = false;
// first look at the target service and see if this has been resolved
OptimizableBinding optimizableBinding = (OptimizableBinding)binding;
// The descision is based primary on the results of the wiring process in the assembly model
// however there are two notable situations when this process doesn't give the right answer
// 1. When a callback is in operation. A callback reference bindings sometimes has to
// act as though there is a local wire and sometimes as if there is a remote wire
// 2. When a reference is retrieved from the domain. In this case the reference
// will not have been part of the original wiring process and will only have
// a target set if the target is local
if (optimizableBinding.getTargetComponentService() != null){
if (optimizableBinding.getTargetComponentService().isUnresolved() == true) {
targetIsRemote = true;
} else {
targetIsRemote = false;
}
} else {