private CnATreeElement unifyLinks(CnATreeElement sourceElement,CnATreeElement destinationElement) throws CommandException {
  for (  CnALink linkDown : sourceElement.getLinksDown()) {
    createLink(destinationElement,linkDown.getDependency(),linkDown.getRelationId());
  }
  for (  CnALink linkUp : sourceElement.getLinksUp()) {
    createLink(linkUp.getDependant(),destinationElement,linkUp.getRelationId());
  }
  return destinationElement;
}

private CnATreeElement unifyLinks ( CnATreeElement sourceElement , CnATreeElement destinationElement ) throws CommandException { for ( CnALink linkDown : sourceElement . getLinksDown ( ) ) { createLink ( destinationElement , linkDown . getDependency ( ) , linkDown . getRelationId ( ) ) ; } for ( CnALink linkUp : sourceElement . getLinksUp ( ) ) { createLink ( linkUp . getDependant ( ) , destinationElement , linkUp . getRelationId ( ) ) ; } return destinationElement ; }
copies all links from the source element to the destination element .
