publish replaceObject method