private void removeTransaction(CompositeTransaction ct){
  if (ct == null)   return;
  Thread thread=getThread(ct);
  if (thread == null)   return;
  Stack<CompositeTransaction> mappings=removeThreadMappings(thread);
  if (mappings != null && !mappings.empty()) {
    mappings.pop();
    if (!mappings.empty())     restoreThreadMappings(mappings,thread);
  }
}

private void removeTransaction ( CompositeTransaction ct ) { if ( ct == null ) return ; Thread thread = getThread ( ct ) ; if ( thread == null ) return ; Stack < CompositeTransaction > mappings = removeThreadMappings ( thread ) ; if ( mappings != null && ! mappings . empty ( ) ) { mappings . pop ( ) ; if ( ! mappings . empty ( ) ) restoreThreadMappings ( mappings , thread ) ; } }
removes the tx associated with calling thread . restores context to the last locally started parent , if any . does nothing if no thread found or if ct null .
