published enumerations for target IDs.
added a condition to select the appropriate target's replication generation IDs.