private void writeDomainPair(DomPair pair,Document document,Element parentElement){
  Element domPair=document.createElement("dompair");
  parentElement.appendChild(domPair);
  writeDomainSpec(pair.getFirstDomain(),document,domPair);
  writeDomainSpec(pair.getSecondDomain(),document,domPair);
}

private void writeDomainPair ( DomPair pair , Document document , Element parentElement ) { Element domPair = document . createElement ( "dompair" ) ; parentElement . appendChild ( domPair ) ; writeDomainSpec ( pair . getFirstDomain ( ) , document , domPair ) ; writeDomainSpec ( pair . getSecondDomain ( ) , document , domPair ) ; }
writes out a domain pair object for the use inside the domain hierarchy
