Products of Cocycles and Extensions of Mappings