final ResourceAccessSecurityTracker tracker = ctx.getResourceAccessSecurityTracker();
boolean allowed = true;
if ( useResourceAccessSecurity ) {
final ResourceAccessSecurity security = tracker.getProviderResourceAccessSecurity();
if ( security != null ) {
allowed = security.canDelete(resource);
} else {
allowed = false;
}
}