To convert replicas to normal objects:
1. Check consistency of replicas before converting them to normal
2. set i_is_replica to false for each replica object
3. destroy dm_reference objects for these replicas
4. destroy dm_job objects
5. delete dm_replica_catalog, dm_replica_delete, dm_replica_delete_info rows for these jobs.
NOTE: Native objects may have storage a_storage_type = replica_filestore_01.
ACLs may be mapped to replica_acl_default.
To check consistency of replicas before converting them to normal:
Find set of objects that are replicas from dm_reference objects where i_reference_info = 'Replica' For each of the reference object, if id-valued attributes for the r_mirror_object_id has id like <local docbase id> then these replicas can be converted. Otherwise replicas cannot be converted to native objects.