I came across an scenario where I have to clone my custom entity. Then I have started doing using with JavaScript by placing a custom duplicate button in the ribbon which tr