Automatic flanging of capacitor aluminum shell