Added a new api which will overwrites existing obj reference