}
private Result doDelete( Resource r ) {
if( r instanceof DeletableResource ) {
try {
DeletableResource dr = (DeletableResource) r;
dr.delete();
return result( "deleted: " + r.getName() );
} catch( NotAuthorizedException e ) {
return result( "not authorised to delete: " + e.getResource().getName());
} catch( ConflictException e ) {
return result( "conflict deleting: " + e.getResource().getName());