if (resourceHandle == null) {
// TODO should not really happen when we can ask about the installed Resources
LOGGER.warn("TODO: Cannot uninstall " + installedResource + " as we have no handle!");
} else {
LOGGER.info("Uninstalling " + installedResource);
resourceHandle.uninstall();
resourcehandleMap.remove(identity);
LOGGER.info("Uninstalled " + installedResource);
}
}
if (resourcesToInstall.size() > 0) {