// set to ignored
logger.debug("No handler found to handle remove of resource with scheme {}", tr.getScheme());
((RegisteredResourceImpl)tr).setState(ResourceState.IGNORED);
} else {
// we don't need to check the result, we just check if a result is returned
if ( handler.handleRemoval(resourceType, resourceId, tr.getURL()) != null ) {
// We first set the state of the resource to uninstall to make setFinishState work in all cases
((RegisteredResourceImpl)tr).setState(ResourceState.UNINSTALL);
erl.setFinishState(ResourceState.UNINSTALLED);
erl.compact();
} else {