After code changes i have deployed & copied the jar file in WEB-INF/lib folder. And again started to conversion. But the macro panel is not renaming it to “preview”
Is that anything i need to do update further or did i miss any?
This is not really the right way to add a new converter. You should add a new component implementing MacroConverter interface and setting “panel” as hint.
There is two different areas where you can act on the macros Confluence macros:
During the import of the Confluence package
The importer (DefaultMacroConverter to be more precise) try to find a special converter (a component implementing MacroConverter interface) associated to a macro id (for example the anchor one I mentioned) and call it to convert the Confluence macro into an XWiki equivalent (here it convert it in the XWiki id macro).
If it does not find any special converter then you end up with a macro which have exactly the same name and parameters than the Confluence one.
After the import
That’s the XWiki Rendering macro (a component implementing Macro interface) you wrote which mimic the Confluence macro behavior.