if (result == null)
throw new SourceNotFoundException("Global "+keyMap.get("profile")+" does not exist.");
// change references to objects where no delta has been applied
result.adjustReferences(global);
service.setAttribute(location, result);
return result;
}