I want to check that whether my page contains a particular resource or not. If the resource is only once on the page then that can be check by using
page.getContentResource("yourResource");
If it is null means resource is not present. But problem is I have multiple resource on my page.like yourResource_1,yourResource_2,yourResource_3... and if i delete the yourResource but still i have yourResource_1,yourResource_2,yourResource_3. then also i returns null because it is only checking for "yourResource"
any suggestion ?