Double-strand DNA breaks in bacteria are repaired by the RecBCD pathway of homologous recombination. Breaks that occur on only one of the two DNA strands, known as single-strand gaps, are thought to be repaired by the RecF pathway. Both the RecBCD and RecF pathways include a series of reactions known as "branch migration", in which single DNA strands are exchanged between two intercrossed molecules of duplex DNA, and "resolution", in which those two intercrossed molecules of DNA are cut apart and restored to their normal double-stranded state. Homologous recombination occurs in several groups of viruses. In DNA viruses such as herpesvirus, recombination occurs through a break-and-rejoin mechanism like in bacteria and eukaryotes. In bacteria, branch migration is facilitated by the RuvABC complex or RecG protein, molecular motors that use the energy of ATP hydrolysis to move the junction. The junction must then be resolved into two separate duplexes, restoring either the parental configuration or a crossed-over configuration. Resolution can occur in either a horizontal or vertical fashion during homologous recombination, giving patch products (if in same orientation during double strand break repair) or splice products (if in different orientations during double strand break repair). RuvA and RuvB are branch migration proteins, while RuvC is a junction-resolving enzyme.