New task option in submenu

I want to create a new component in my palette , which i have already done. I have created it as bpmn:servicetask type.

But i want to get my task option on click of submenu as shown below. problem is i am not able to replace it with my task. Do i need to create a new bpmn:mynewtask type?

You’d need to provide a custom entry in the popup menu by replacing or changing the ReplaceMenuProvider.

Cf. line 50 where the entries are being built.

Unfortunately we don’t have a concise walkthrough or example for doing this. I’ve created this issue to write one, eventually.