TemplateServices.unpublishTemplateFile((Template)currWebAsset);
} else if( currWebAsset instanceof Link ) {
// Removes static menues to provoke all possible dependencies be generated.
if( parent instanceof Folder ) {
Folder parentFolder = (Folder)parent;
Host host = hostAPI.findParentHost(parentFolder, APILocator.getUserAPI().getSystemUser(), false);
RefreshMenus.deleteMenu(host);
CacheLocator.getNavToolCache().removeNav(host.getIdentifier(), parentFolder.getInode());
}
} else if (currWebAsset instanceof File) {
RefreshMenus.deleteMenu(currWebAsset);