LPS-44255 Use overridden setContentLength method