/**
* Creates a properly configured SpecRelation object between proxy and target.
*/
private SpecRelation createLink(CompoundCommand cmd, SpecObject proxy) {
SpecRelation link;
link= ReqIF10Factory.eINSTANCE.createSpecRelation();
TracingConfiguration config = getTracingConfig();
link.setSource(config.isLinkFromTarget() ? target : proxy);
link.setTarget(config.isLinkFromTarget() ? proxy : target);
cmd.append(ProrUtil.createAddTypedElementCommand(
ReqIF10Util.getReqIF(config).getCoreContent(),
ReqIF10Package.Literals.REQ_IF_CONTENT__SPEC_RELATIONS,
link, ReqIF10Package.Literals.SPEC_RELATION__TYPE,
config.getLinkType(), 0, 0, domain, itemProvider.getAdapterFactory()));