Exhibit 4 AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT THIS AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT (this "AGREEMENT") is made as of the 14th day of December, 2001, by and between Manugistics Group, Inc., a Delaware corporation...