Catalytic and non-catalytic amidation of carboxylic acid substrates