Component source = relToResolve.getLinkSource();
for (Map.Entry<String, RemoteMachine> element : remotes.getMachines()
.entrySet()) {
RemoteMachine machine = element.getValue();
String urlForResolution = element.getKey();
if (machine.isLocalhost()) {
continue;
}
try {
logger.info("trying to resolve in machine key {} and url {}",
urlForResolution, urlForResolution);
resolved = machine.resolveRemote((Instance) source,
relToResolve);
if (resolved != null
&& (resolved.singletonResolved != null || resolved.setResolved != null)) {
break;