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.
Powered by a free Atlassian Confluence Community License granted to WSO2, Inc.. Evaluate Confluence today.