A constructor with parameters of the factory method was added to the sql writer strategy class.