adds ReferenceAlreadyExistsException and wrap native exception in it