An end cap mounted on the stator element is provided with the same cut-out as arranged on the stator segment so that both parts can be secured on a retainer system for winding processing. The end cap are arranged to retain insulating materials.