How to identify whether the object is already present in the object repository or not while adding new object?