Implemented copyInstance function as a service [#57680908]