Replaces the specified entity in this Group object with the specified entity currently not in this Group object.