private void assimilateContext(NestingException nestingException){
  Enumeration<ExceptionContext> enumExeptions=nestingException.getExceptionContexts();
  if (enumExeptions.hasMoreElements()) {
    while (enumExeptions.hasMoreElements()) {
      addExceptionContext(enumExeptions.nextElement());
    }
    nestingException.clearContexts();
  }
}

private void assimilateContext ( NestingException nestingException ) { Enumeration < ExceptionContext > enumExeptions = nestingException . getExceptionContexts ( ) ; if ( enumExeptions . hasMoreElements ( ) ) { while ( enumExeptions . hasMoreElements ( ) ) { addExceptionContext ( enumExeptions . nextElement ( ) ) ; } nestingException . clearContexts ( ) ; } }
any outstanding context from the exception provided will be added to this exception . the context in the exception provided will be cleared .
