Its the same process used for producing chlorine in pools. Theres a system where you dump tons of a special salt in the pool. Makes the water nice and soft. When More chlorine is needed an electrical current is induced through a inline chlorinator thus producing chlorine. They are expensive...