Note that this forum is for the xwiki.org open source project (and for all extensions found on extensions.xwiki.org). The pro macro you refer is not something you’ll find on xwiki.org and it’s provided by a company, XWiki SAS, in its own paying extension repository. You should talk to them for support.
Apart from this, what you’re doing seems good and should override the macro.