private DigicoreChain cleanChain(DigicoreChain chain){
  return chain;
}

private DigicoreChain cleanChain ( DigicoreChain chain ) { return chain ; }
todo currently returns exactly the same chain . no cleaning or merging of activities that are close to one another .
