Lewis acids in the preparation of the heterocyclic compounds: synthesis and characterization of the impurities of API 2004/05 – 2006/07 SCHOOL OF ADVANCED.