Changed name of function deepCopy to deepCopyOfObj to prevent private api check false failure.