Added buildAfpChain method to AlignmentMapping.