Explicitly loading new-code-macro web resources does not work on Confluence 6.x

We noticed that when code-block macro is wrapped in Bob Swift Future macro, the syntax highlighting does not happen. On debugging, found that the required web-resources for new-code-macro are not getting loaded. Tried to put a work around to explicitly load web-resources pageBuilderService.assembler().resources().requireWebResource(“com.atlassian.confluence.ext.newcode-macro-plugin:sh-theme-confluence”); This solved the problem for Confluence 5.10.x and below but does not work on Confluence 6.0.x.
As per Confluence 6.0, documentation, added new-code-macro resources as dependency in atlassian-plugin.xml. Now, I do see the resources on the browser, but syntax highlighting does not work. Any suggestion is appreciated? Thanks