com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Checking for the Existence of a Resource

We can use the following code to confirm whether the resource exists:

boolean value = registry.resourceExists("/c1/c2/r1");

If the resource does exist, a boolean value of true will be returned and if it does not exist, the false value is returned.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.